com.bulletphysics.collision.dispatch
Class CollisionWorld.RayResultCallback

java.lang.Object
  extended by com.bulletphysics.collision.dispatch.CollisionWorld.RayResultCallback
Direct Known Subclasses:
CollisionWorld.ClosestRayResultCallback
Enclosing class:
CollisionWorld

public abstract static class CollisionWorld.RayResultCallback
extends Object

RayResultCallback is used to report new raycast results.


Field Summary
 float closestHitFraction
           
 short collisionFilterGroup
           
 short collisionFilterMask
           
 CollisionObject collisionObject
           
 
Constructor Summary
CollisionWorld.RayResultCallback()
           
 
Method Summary
abstract  float addSingleResult(CollisionWorld.LocalRayResult rayResult, boolean normalInWorldSpace)
           
 boolean hasHit()
           
 boolean needsCollision(BroadphaseProxy proxy0)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

closestHitFraction

public float closestHitFraction

collisionObject

public CollisionObject collisionObject

collisionFilterGroup

public short collisionFilterGroup

collisionFilterMask

public short collisionFilterMask
Constructor Detail

CollisionWorld.RayResultCallback

public CollisionWorld.RayResultCallback()
Method Detail

hasHit

public boolean hasHit()

needsCollision

public boolean needsCollision(BroadphaseProxy proxy0)

addSingleResult

public abstract float addSingleResult(CollisionWorld.LocalRayResult rayResult,
                                      boolean normalInWorldSpace)