public final class PersistentManifolds
extends java.lang.Object
btPersistentManifold
class.| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
| Modifier and Type | Method and Description |
|---|---|
static int |
countPoints(long persistentManifoldId)
Return the number of points in the specified manifold (native field:
m_cachedPoints).
|
static long |
getBodyAId(long persistentManifoldId)
Return the native ID of the first collision object (native field:
m_body0).
|
static long |
getBodyBId(long persistentManifoldId)
Return the native ID of the 2nd collision object (native field: m_body1).
|
static long |
getPointId(long persistentManifoldId,
int pointIndex)
Return the indexed btManifoldPoint in the specified manifold.
|
static long[] |
listPointIds(long persistentManifoldId)
Enumerate the native IDs of all points in the specified manifold.
|
public static final java.util.logging.Logger logger
public static int countPoints(long persistentManifoldId)
persistentManifoldId - the native ID of a
btPersistentManifold (not zero)btPersistentManifold (≥0, ≤4)public static long getBodyAId(long persistentManifoldId)
persistentManifoldId - the native ID of a
btPersistentManifold (not zero)PhysicsCollisionObject.findInstance(long)public static long getBodyBId(long persistentManifoldId)
persistentManifoldId - the native ID of a
btPersistentManifold (not zero)PhysicsCollisionObject.findInstance(long)public static long getPointId(long persistentManifoldId,
int pointIndex)
persistentManifoldId - the native ID of a
btPersistentManifold (not zero)pointIndex - the index of the point (≥0, <4)public static long[] listPointIds(long persistentManifoldId)
persistentManifoldId - the native ID of a
btPersistentManifold (not zero)ManifoldPoints