[ODE] complex surfaces?
david@csworkbench.com
david at csworkbench.com
Wed Apr 2 00:25:01 2003
You have 2 choices here. For the general case, there's the tri-collider
in the contrib directory. It uses OPCODE to do the collision and then
converts it's output to ODE contacts. Then, and this would probably work
better for your app, there's a heightfield collider in the works. I'm not
sure what the status is on that project.
Also, there was a dxTriangle class released recently, but it seems like it
was more of a tutorial or reference on implementing your own collision
class, which is yet another option. Finally, you don't have to use ODE's
collision system at all. The collision system in ODE is actually a
completely separate entity that exists for the sole purpose of filling in
contact joints before every timestep. If you want to fill in your own
contact joints without ever calling dCollide, that is completely up to
you.
David
> I noticed there aren't no built-in 2-d geoms, like
> triangles, or squares. If I want, for example, to
> build a 2 variables cosine-like ground, how should I
> do that? building it with many boxes, calculating
> center and orientation and positioning vertices at
> right places making them match ... err, this does not
> sound funny to me. (but maybe i'm missing something)
> so there isn't any better way?
>
> another thing: sometimes ODE behaves strangely to me,
> for example I tried to compile the test_buggy.cpp: it
> compiled fine. I wanted to increase the vehicle's
> mass, so I changed #define MASS 1 to 10 or something
> like this. I ended up with 4 compile errors and some
> warnings. after 15 minutes messing around with code
> lines I changed it back to 1 and it didn't work no
> more. then I changed that constant again to 20 or so
> without touching another single line .... and worked
> again. O_o
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms, and more
> http://platinum.yahoo.com
> _______________________________________________
> ODE mailing list
> ODE@q12.org
> http://q12.org/mailman/listinfo/ode