[ODE] Difference Between Bodies and Geoms

Adam D. Moss adam at gimp.org
Sun Apr 11 10:48:56 MST 2004


Chris Ledwith wrote:
>>>I'm wondering if I need a seperate Geom for every object in the ODE
>>>simulation. This would be rather memory expensive especially since I
>>>plan to use TriMeshes. I'd like to be able to re-use a geom, like have
>>>several objects(bodies) with the geom.
>>
>>When you create the trimesh geom it doesn't copy the vertex/index data you
>>pass to it, so there's nothing that prevents you from reusing the same
>>data
>>for multiple trimesh geoms (you only need one copy of that data).
> 
> Not only that, the AABB tree is shared as well.

That's OOBB rather than AABB, right?  Otherwise I don't see
much mileage in sharing AABB (which implies world-transformed)
data between multiple objects which may have completely different
transformations, repeatedly invalidating any cached AABB data.

--Adam
-- 
Adam D. Moss   . ,,^^   adam at gimp.org   http://www.foxbox.org/   co:3


More information about the ODE mailing list