public class PhysicsRayTestResult
extends java.lang.Object
Constructor and Description |
---|
PhysicsRayTestResult() |
PhysicsRayTestResult(PhysicsCollisionObject collisionObject,
Vector3f hitNormalLocal,
float hitFraction,
boolean normalInWorldSpace) |
Modifier and Type | Method and Description |
---|---|
void |
fill(PhysicsCollisionObject collisionObject,
Vector3f hitNormalLocal,
float hitFraction,
boolean normalInWorldSpace) |
PhysicsCollisionObject |
getCollisionObject() |
float |
getHitFraction()
The hitFraction is the fraction of the ray length (yeah, I know) at which the collision occurred.
|
Vector3f |
getHitNormalLocal() |
boolean |
isNormalInWorldSpace() |
public PhysicsRayTestResult()
public PhysicsRayTestResult(PhysicsCollisionObject collisionObject, Vector3f hitNormalLocal, float hitFraction, boolean normalInWorldSpace)
public PhysicsCollisionObject getCollisionObject()
public Vector3f getHitNormalLocal()
public float getHitFraction()
public boolean isNormalInWorldSpace()
public void fill(PhysicsCollisionObject collisionObject, Vector3f hitNormalLocal, float hitFraction, boolean normalInWorldSpace)