[ODE] static Meshes

cledwith at d-a-s.com cledwith at d-a-s.com
Tue Mar 16 18:08:20 MST 2004


> Hello.
> I have a static mesh for example a chair.
> So if I want to simulate a chair falling down some stairs do I have to
> replace the chair by some primitive objects in ode or are there some other
> elegant solutions?
>
> Thanks
> Bernd

Yes, use one or more geoms (dGeomID). Create a body (dBodyID) for the
chair, and link it to one or more geoms of the box type. The quantity of
boxes depends on your accuracy needs. A single box geom is going to fall
down the stairs like, well, a box. If you have multiple box geoms (one for
each leg, the seat, etc.) they must each be owned by geoms of the
transform type. Then each box geom's position and rotation will be
relative to its geom transform. The geom transforms' positions and
rotations should each be set equal to the position and rotation of the
body.

-Chris



More information about the ODE mailing list