com.bulletphysics.collision.narrowphase
Class TriangleRaycastCallback

java.lang.Object
  extended by com.bulletphysics.collision.shapes.TriangleCallback
      extended by com.bulletphysics.collision.narrowphase.TriangleRaycastCallback

public abstract class TriangleRaycastCallback
extends TriangleCallback


Field Summary
 Vector3f from
           
 float hitFraction
           
 Vector3f to
           
 
Constructor Summary
TriangleRaycastCallback(Vector3f from, Vector3f to)
           
 
Method Summary
 void processTriangle(Vector3f[] triangle, int partId, int triangleIndex)
           
abstract  float reportHit(Vector3f hitNormalLocal, float hitFraction, int partId, int triangleIndex)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

from

public final Vector3f from

to

public final Vector3f to

hitFraction

public float hitFraction
Constructor Detail

TriangleRaycastCallback

public TriangleRaycastCallback(Vector3f from,
                               Vector3f to)
Method Detail

processTriangle

public void processTriangle(Vector3f[] triangle,
                            int partId,
                            int triangleIndex)
Specified by:
processTriangle in class TriangleCallback

reportHit

public abstract float reportHit(Vector3f hitNormalLocal,
                                float hitFraction,
                                int partId,
                                int triangleIndex)