com.bulletphysics.collision.narrowphase
Class SubsimplexConvexCast
java.lang.Object
com.bulletphysics.collision.narrowphase.SubsimplexConvexCast
- All Implemented Interfaces:
- ConvexCast
public class SubsimplexConvexCast
- extends Object
- implements ConvexCast
SubsimplexConvexCast implements Gino van den Bergens' paper
"Ray Casting against bteral Convex Objects with Application to Continuous Collision Detection"
GJK based Ray Cast, optimized version
Objects should not start in overlap, otherwise results are not defined.
SubsimplexConvexCast
public SubsimplexConvexCast(ConvexShape shapeA,
ConvexShape shapeB,
SimplexSolverInterface simplexSolver)
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