[ODE] UNSORTED TriList collision (no trees!)

Nate W coding at natew.com
Wed Jun 18 19:01:01 2003


On Wed, 18 Jun 2003, Ed Resnick wrote:

> So my question is, has anyone written code to generate the contact
> points for blah-triangle collision, without any extra bloat? blah =
> sphere, cclinder, aabb, etc.

Not exactly, but you might look into leveraging ODE's existing contact
generation functions for planes.  The glue for Opcode does its contact
generation by calling the plane-box collider, using information from a
single triangle to create a short-lived plane object just for contact
generation purposes.

Triangles are bounded and planes aren't, but if your own code has already
determined that collision has happened, and you just want contact points,
that's not a huge problem.  It works pretty well for height-mapped terrain
in my application, anyhow.

-- 

Nate Waddoups
Redmond WA USA
http://www.natew.com