From: Ethan Glasser-C. <gl...@cs...> - 2011-01-17 16:00:23
|
On 01/17/2011 07:07 AM, Marc Killpack wrote: > Sorry one more follow-up question, > > What does setting the default axis in a Mass object do if it doesn't > define the direction of the associated body? For example, > > M = ode.Mass() > M.setCappedCylinder(10, /direction (x-axis = 1)/, /radius/, /length/) > body1.setMass(M) > body1.setPosition((/some position x, y, z)/) Setting stuff on Mass objects is basically just to define physical simulation properties like center of mass, moment of inertia, etc. Try printing a Mass object some time, and you'll see all it defines. It has nothing to do with the collision detection or other rigid body functions (position, rotation, joints, etc.). Ethan |