[ODE] AABBs

Russell Bartley russellbartley at kromestudios.com
Thu Jun 1 19:16:24 MST 2006


Hi,
    I'm writing code to render the ODE shapes in wireframe for debug purposes, and while using dGeomGetAABB() I noticed that if I only have one body in my sim, the returned AABB is local to that particular geom (i.e. -25,+25,-25,+25,-25,+25).
But when I add more bodies the same call dGeomGetAABB() starts returning absolute world AABB coordinates for the same geom (i.e. -2700,-2750,....).

This is because when calling dSpaceCollide() if there is more than one body, the AABB gets recomputed and set to the world coordinates.

I'm guessing here that an AABB is meant to be in world coordinates, so is it a bug where you have only one body? I suppose not many people test much with 1 body and it doesn't come up ever really, but I can successfully add dPlanes with my dBox and collide with them and still recieve local AABB's for the dBox.

Should I assume AABB's are meant to be in world coords?






This message and its attachments may contain legally privileged or confidential information. This message is intended for the use of the individual or entity to which it is addressed. If you are not the addressee indicated in this message, or the employee or agent responsible for delivering the message to the intended recipient, you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments, which does not relate to the official business of the sending company must be taken not to have been sent or endorsed by the sending company or any of its related entities. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://q12.org/pipermail/ode/attachments/20060602/92e46ddb/attachment.htm


More information about the ODE mailing list