[ODE] Heightfield class movement problem
hidden.asbestos at googlemail.com
Fri Sep 8 03:32:06 MST 2006
> What I've done is created a geometry and drawn it using the
> dsDrawTriangle function as in the example. I've then moved the geom to a
> new position using dGeomSetPosition. Then I've redrawn the geom at this
> position using the dsDrawTriangle function. However when I try and
> collide objects with this geom they pass right through it.So I'm not
> sure why the collision isn't working.
I'm not sure what to suggest - I can confirm that I've successfully
used placed heightfields in my own engine and they do work fine.
Could it be that you've created the heightfield in non-placeable mode?
I don't think that would be the case because there's an assert if you
try to set position on a non-placeable geom.
I'm stumped by this... can you move the heightfield around in
test_heightfield? I certainly did while writing it....
More information about the ODE