com.bulletphysics.collision.dispatch
Class CollisionWorld.ClosestRayResultCallback

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

public static class CollisionWorld.ClosestRayResultCallback
extends CollisionWorld.RayResultCallback


Field Summary
 Vector3f hitNormalWorld
           
 Vector3f hitPointWorld
           
 Vector3f rayFromWorld
           
 Vector3f rayToWorld
           
 
Fields inherited from class com.bulletphysics.collision.dispatch.CollisionWorld.RayResultCallback
closestHitFraction, collisionFilterGroup, collisionFilterMask, collisionObject
 
Constructor Summary
CollisionWorld.ClosestRayResultCallback(Vector3f rayFromWorld, Vector3f rayToWorld)
           
 
Method Summary
 float addSingleResult(CollisionWorld.LocalRayResult rayResult, boolean normalInWorldSpace)
           
 
Methods inherited from class com.bulletphysics.collision.dispatch.CollisionWorld.RayResultCallback
hasHit, needsCollision
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rayFromWorld

public final Vector3f rayFromWorld

rayToWorld

public final Vector3f rayToWorld

hitNormalWorld

public final Vector3f hitNormalWorld

hitPointWorld

public final Vector3f hitPointWorld
Constructor Detail

CollisionWorld.ClosestRayResultCallback

public CollisionWorld.ClosestRayResultCallback(Vector3f rayFromWorld,
                                               Vector3f rayToWorld)
Method Detail

addSingleResult

public float addSingleResult(CollisionWorld.LocalRayResult rayResult,
                             boolean normalInWorldSpace)
Specified by:
addSingleResult in class CollisionWorld.RayResultCallback