[ODE] Collisiondetection with triangles
Martijn Buijs
buijs512 at planet.nl
Fri Mar 16 10:17:39 MST 2007
Jürgen Ladstätter wrote:
> Hi there,
>
> already read the documentation and i think i misunderstood something. For a
> plane, therefore I need the normal vector of that plane and some factor
> (d?).
> First of all I thought a,b,c,d are just vectors and the planes edges are
> placed at the coordinates for a,b,c,d.
> So with that circumstance the only way for checking a ray's collision with a
> single triangle is a trimesh.
>
> Or does anyone of you has better ideas?
>
> Kind regards,
Is there any reason you cannot use the Trimesh Geom?
If you are just interested in the collision intersection result (no dynamics), you might be better
of doing the (ray?) intersections yourself instead of using ODE.
The four parameters of the plane are x,y,z,w (or was it w,x,y,z?) where xyz is the plane normal
vector, and w the distance (of the plane surface) from the origin (0,0,0).
Martijn
More information about the ODE
mailing list