public final class PhysicsSweepTestResult
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
| Modifier and Type | Method and Description |
|---|---|
PhysicsCollisionObject |
getCollisionObject()
Access the collision object that was hit.
|
float |
getHitFraction()
Read the fraction of the way between the transforms (from=0, to=1, ≥0,
≤1)
|
Vector3f |
getHitNormalLocal(Vector3f storeResult)
Copy the normal vector at the point of contact.
|
int |
partIndex()
Read the part index at the point of contact.
|
int |
triangleIndex()
Read the triangle index at the point of contact.
|
public static final java.util.logging.Logger logger
public PhysicsCollisionObject getCollisionObject()
public float getHitFraction()
public Vector3f getHitNormalLocal(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public int partIndex()
If shape that was hit is compound or convex, the index is undefined.
If the shape is a GImpactCollisionShape or MeshCollisionShape, the index identifies an IndexedMesh.
If the shape is a HeightfieldCollisionShape, the index identifies a grid row.
public int triangleIndex()
If shape that was hit is convex, the index is undefined.
If shape is a CompoundCollisionShape, the index identifies a child shape.
If the shape is a GImpactCollisionShape or MeshCollisionShape, the index identifies a triangle in an IndexedMesh.
If the shape is a HeightfieldCollisionShape, the index indicates a grid column.