org.ode4j.ode
Interface DTriMesh.DTriRayCallback

Enclosing interface:
DTriMesh

public static interface DTriMesh.DTriRayCallback

Ray callback. Allows the user to say if a ray collides with a triangle on barycentric coords. The user can for example sample a texture with alpha transparency to determine if a collision should occur.


Method Summary
 int call(DGeom TriMesh, DGeom Ray, int TriangleIndex, double u, double v)
           
 

Method Detail

call

int call(DGeom TriMesh,
         DGeom Ray,
         int TriangleIndex,
         double u,
         double v)