com.bulletphysics.collision.narrowphase
Class TriangleConvexcastCallback
java.lang.Object
com.bulletphysics.collision.shapes.TriangleCallback
com.bulletphysics.collision.narrowphase.TriangleConvexcastCallback
public abstract class TriangleConvexcastCallback
- extends TriangleCallback
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
TriangleConvexcastCallback
public TriangleConvexcastCallback(ConvexShape convexShape,
Transform convexShapeFrom,
Transform convexShapeTo,
Transform triangleToWorld,
float triangleCollisionMargin)
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)