com.jme3.bullet.collision
Class PhysicsSweepTestResult

java.lang.Object
  extended by com.jme3.bullet.collision.PhysicsSweepTestResult

public class PhysicsSweepTestResult
extends java.lang.Object

Contains the results of a PhysicsSpace rayTest


Constructor Summary
PhysicsSweepTestResult()
           
PhysicsSweepTestResult(PhysicsCollisionObject collisionObject, Vector3f hitNormalLocal, float hitFraction, boolean normalInWorldSpace)
           
 
Method Summary
 void fill(PhysicsCollisionObject collisionObject, Vector3f hitNormalLocal, float hitFraction, boolean normalInWorldSpace)
           
 PhysicsCollisionObject getCollisionObject()
           
 float getHitFraction()
           
 Vector3f getHitNormalLocal()
           
 boolean isNormalInWorldSpace()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhysicsSweepTestResult

public PhysicsSweepTestResult()

PhysicsSweepTestResult

public PhysicsSweepTestResult(PhysicsCollisionObject collisionObject,
                              Vector3f hitNormalLocal,
                              float hitFraction,
                              boolean normalInWorldSpace)
Method Detail

getCollisionObject

public PhysicsCollisionObject getCollisionObject()
Returns:
the collisionObject

getHitNormalLocal

public Vector3f getHitNormalLocal()
Returns:
the hitNormalLocal

getHitFraction

public float getHitFraction()
Returns:
the hitFraction

isNormalInWorldSpace

public boolean isNormalInWorldSpace()
Returns:
the normalInWorldSpace

fill

public void fill(PhysicsCollisionObject collisionObject,
                 Vector3f hitNormalLocal,
                 float hitFraction,
                 boolean normalInWorldSpace)