com.bulletphysics.collision.narrowphase
Class GjkConvexCast

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

public class GjkConvexCast
extends 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
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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