[ODE] static Meshes

bernd129 at web.de bernd129 at web.de
Wed Mar 17 12:24:56 MST 2004


thanks all
Is it faster to use the primitive method or the trimesh collision mehtod?

Bernd
> 
> > 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
> 


______________________________________________________________________
Extra-Konto: 2,50 %* Zinsen p. a. ab dem ersten Euro! Nur hier mit 25
Euro-Tankgutschein & ExtraPramie! https://extrakonto.web.de/?mc=021110



More information about the ODE mailing list