com.bulletphysics.collision.narrowphase
Class TriangleConvexcastCallback

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

public abstract class TriangleConvexcastCallback
extends TriangleCallback


Field Summary
 ConvexShape convexShape
           
 Transform convexShapeFrom
           
 Transform convexShapeTo
           
 float hitFraction
           
 float triangleCollisionMargin
           
 Transform triangleToWorld
           
 
Constructor Summary
TriangleConvexcastCallback(ConvexShape convexShape, Transform convexShapeFrom, Transform convexShapeTo, Transform triangleToWorld, float triangleCollisionMargin)
           
 
Method Summary
 void processTriangle(Vector3f[] triangle, int partId, int triangleIndex)
           
abstract  float reportHit(Vector3f hitNormalLocal, Vector3f hitPointLocal, float hitFraction, int partId, int triangleIndex)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

convexShape

public ConvexShape convexShape

convexShapeFrom

public final Transform convexShapeFrom

convexShapeTo

public final Transform convexShapeTo

triangleToWorld

public final Transform triangleToWorld

hitFraction

public float hitFraction

triangleCollisionMargin

public float triangleCollisionMargin
Constructor Detail

TriangleConvexcastCallback

public TriangleConvexcastCallback(ConvexShape convexShape,
                                  Transform convexShapeFrom,
                                  Transform convexShapeTo,
                                  Transform triangleToWorld,
                                  float triangleCollisionMargin)
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,
                                Vector3f hitPointLocal,
                                float hitFraction,
                                int partId,
                                int triangleIndex)