com.bulletphysics.collision.narrowphase
Class GjkConvexCast

java.lang.Object
  extended by com.bulletphysics.collision.narrowphase.GjkConvexCast
All Implemented Interfaces:
ConvexCast

public class GjkConvexCast
extends java.lang.Object
implements ConvexCast

GjkConvexCast performs a raycast on a convex object using support mapping.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.bulletphysics.collision.narrowphase.ConvexCast
ConvexCast.CastResult
 
Field Summary
protected  ObjectPool<DiscreteCollisionDetectorInterface.ClosestPointInput> pointInputsPool
           
 
Constructor Summary
GjkConvexCast(ConvexShape convexA, ConvexShape convexB, SimplexSolverInterface simplexSolver)
           
 
Method Summary
 boolean calcTimeOfImpact(Transform fromA, Transform toA, Transform fromB, Transform toB, ConvexCast.CastResult result)
          Cast a convex against another convex object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pointInputsPool

protected final ObjectPool<DiscreteCollisionDetectorInterface.ClosestPointInput> pointInputsPool
Constructor Detail

GjkConvexCast

public GjkConvexCast(ConvexShape convexA,
                     ConvexShape convexB,
                     SimplexSolverInterface simplexSolver)
Method Detail

calcTimeOfImpact

public boolean calcTimeOfImpact(Transform fromA,
                                Transform toA,
                                Transform fromB,
                                Transform toB,
                                ConvexCast.CastResult result)
Description copied from interface: ConvexCast
Cast a convex against another convex object.

Specified by:
calcTimeOfImpact in interface ConvexCast