public class PhysicsSweepTestResult
extends java.lang.Object
Constructor and Description |
---|
PhysicsSweepTestResult()
A private constructor to inhibit instantiation of this class by Java.
|
PhysicsSweepTestResult(PhysicsCollisionObject collisionObject,
Vector3f hitNormalLocal,
float hitFraction,
boolean normalInWorldSpace) |
Modifier and Type | Method and Description |
---|---|
void |
fill(PhysicsCollisionObject collisionObject,
Vector3f hitNormalLocal,
float hitFraction,
boolean normalInWorldSpace)
Fill in the fields of this result.
|
PhysicsCollisionObject |
getCollisionObject()
Access the collision object that was hit.
|
float |
getHitFraction()
Read the fraction of fraction of the way between the transforms (from=0,
to=1, ≥0, ≤1)
|
Vector3f |
getHitNormalLocal()
Access the normal vector at the point of contact.
|
boolean |
isNormalInWorldSpace()
Test whether the normal is in world space.
|
public PhysicsSweepTestResult()
public PhysicsSweepTestResult(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)
collisionObject
- hitNormalLocal
- hitFraction
- normalInWorldSpace
-