[ODE] Switching between an immovable and movable body ? and Manual
body control ?
Adam D. Moss
adam at gimp.org
Mon Oct 6 11:12:34 MST 2003
Rob Ruck wrote:
> New to the mailing list, and not surprisingly a few questions:
>
> - I know that a static body can be created, i.e. for dgeomsetbody() you
pass it
> 0/null body id. Which works fine, but why can this status not be changed
> during a simulation; if I create a body, set it to geometry, and then
decide to
> make it static, using dgeomsetbody() with body id of 0 (and maybe disabling
> the body, just so the geom and body match up). However, if a geom has
> previously had a body set to it, setting the body to 0 doesn't work the same
> as if no body had been set, the geom no longer seems to be collidable, why
> is this ?
I don't know why -- I presume it's a bug in your code, since this
does indeed work. Perhaps you are forgetting to apply the
body's rotation and translation to the geom when you 'pin'
the geom.
--Adam
--
Adam D. Moss . ,,^^ adam at gimp.org http://www.foxbox.org/ co:3
More information about the ODE
mailing list