[ODE] dCreateBox() inputs halfsizes?
J. Perkins
jason at 379.com
Wed Dec 12 06:29:02 2001
Ruud van Gaal wrote:
> Problem is that I'm creating a single ODE box for the body to add forces to. In
> this case the center of the box is also the center of mass, so any forces
> applied at certain points (suspension locations) give correct torques etc.
> However, at collision time, I need the bounding box of the *geometry* instead,
> which is shifted with respect to it's dynamics counterpart. In other words, the
> space geomID box and the world bodyID box are related in size, but their
> centers don't match.
I think you want to use the dCreateGeomTransform() function, which
lets you apply a local transform to your bounding box. I just
started using this function yesterday and while I haven't gotten
it to work yet, I think it will do what you want.
Jason
379