Hello,
I've been using Newton a little bit for a few months now and I really love it. I'm making some progress, but I still have some issues that I was hoping I might get some guidance on. My general questions relate to compound shapes formed from convex hulls of meshes, center of mass, and mass moment of inertia values. I thought I might approach my questions by way of a simple example...
On the documentation page for NewtonCreateCompoundCollision (http://newtondynamics.com/wiki/index.php5?title=NewtonCreateCompoundCollision), the example is given of using a compound collision object to create a snowman from three spheres. I'd like to do that, but I'd like to use three meshes instead of three sphere primitives, just as an exercise to prepare me for using meshes with more complicated shapes down the road.
I'll start with something basic, just to make sure I'm somewhat on the right track...
I'd like the origin of the local coordinate system for my snowman sphere meshes to be at the base of the snowman where it would touch the ground, with +Z pointing up (out of the ground). So, for example, let's say my snowman will be three 1 meter diameter spheres. The bottom sphere mesh (sphere1) will be centered at (0,0,0.5), the middle sphere mesh (sphere2) will be centered at (0,0,1.5), and the top sphere mesh (sphere3) will be centered at (0,0,2.5).
In this scenario, where is the center of mass of the snowman body, assuming I don't explicitly set it myself? Is it at (0,0,0), or is it at (0,0,1.5)?
A related question: if I specify mass moment of inertia values for the body, how should they be specified? Should they be about / with respect to the center of mass location that I set, or should they be about / with respect to (0,0,0)?
Another related question: is there any negative to having my meshes located as described above, or should I just not do this and instead always strive to put my mesh's local coordinate system origin at the compound object's center of mass?
I apologize if this has been covered somewhere before...I searched everywhere and came up empty! If anyone has some guidance on this, or can point me to some example, it would be greatly appreciated.
Thanks a lot,
Bill