[ODE] Center of Mass not at (0, 0, 0)

Pierre-Laurent CHAMBERT pilo.c at wanadoo.fr
Wed Sep 13 09:32:33 MST 2006


You can place geom's center not a body's center using geom transform. This way 
you can put the center of body wherever you want onthe geom :)

On Wednesday 13 September 2006 17:45, selwakad at comcast.net wrote:
> Hi,
>
> I have been reading the thread on having the center of mass at another
> point other than (0, 0, 0). this would be very useful. For example, if you
> have a body with many geoms, say a representation of a human body using
> multiple geoms for arms, legs, trunk and head. If you want to animate that
> body, say, moving the arms about, right now, you have to re-calculate where
> the center of mass is and the re-shift/offset all of your geoms, which
> would lead to the human body actually being shifted around on the screen,
> i.e: this solution would not work. But if you have a CM that is not at
> (0,0,0) then you no longer need to do the geom shift/offset and the body's
> mesh would not have to be shifted around on the screen since the Geom
> position is that same of that of the mesh/bones on the screen and this
> would work.
>
> Thanks.



More information about the ODE mailing list