I am trying to use OsgBullet to create a simple box that has its center of mass at a point other than the geometric center. I looked through the center of mass example that was included and I modified it to try and do what I need. However, it is not behaving the same as the example. I have attached my sample file I copied the createObject method and refactored it to just create an osg box instead of loading the com node from a file. The rest of the code is the same. I have it create two boxes in main. The first is with the standard com at the center, and in the second one I am trying to shift the com down so it will be closer to the ground when it hits. Both boxes are rotated slightly. From a physics perspective I would expect that the box with the normal com would fall over, while the one with the com down low to the ground would stabilize and remain upright. However, when I run the simulation and look at the debug drawing the bullet location of the box no longer matches the osg location. This discrepancy means that the osg box appears to hit the ground while it is still in the air. I believe that there is some difference in the way OsgBullet is setting up the motion state for some reason, or I am just messing up the configuration in some way I do not understand. Hopefully, it is that easy and someone can point me to what I am doing wrong.
--
You received this message because you are subscribed to the Google Groups "osgbullet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osgbullet-use...@googlegroups.com.
To post to this group, send email to osgbull...@googlegroups.com.
Visit this group at http://groups.google.com/group/osgbullet-users.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "osgbullet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osgbullet-use...@googlegroups.com.
To post to this group, send email to osgbull...@googlegroups.com.
Visit this group at http://groups.google.com/group/osgbullet-users.
For more options, visit https://groups.google.com/groups/opt_out.