public final class ManifoldPoints
extends java.lang.Object
btManifoldPoint class.
Based on PhysicsCollisionEvent.
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
| Modifier and Type | Method and Description |
|---|---|
static long |
createTestPoint()
Create a manifold point (for testing) that will never be freed.
|
static float |
getAppliedImpulse(long manifoldPointId)
Return the applied impulse of the specified point (native field:
m_appliedImpulse).
|
static float |
getAppliedImpulseLateral1(long manifoldPointId)
Return the applied lateral impulse #1 of the specified point (native
field: m_appliedImpulseLateral1).
|
static float |
getAppliedImpulseLateral2(long manifoldPointId)
Return the applied lateral impulse #2 of the specified point (native
field: m_appliedImpulseLateral2).
|
static float |
getCombinedFriction(long manifoldPointId)
Return the combined friction of the specified point, which is the product
of the collision-object frictions (native field: m_combinedFriction).
|
static float |
getCombinedRestitution(long manifoldPointId)
Return the combined restitution of the specified point, which is the
product of the collision-object restitutions (native field:
m_combinedRestitution).
|
static float |
getCombinedRollingFriction(long manifoldPointId)
Return the combined rolling friction of the specified point (native
field: m_combinedRollingFriction).
|
static float |
getCombinedSpinningFriction(long manifoldPointId)
Return the combined spinning friction of the specified point (native
field: m_combinedSpinningFriction).
|
static float |
getContactMotion1(long manifoldPointId)
Return the contact motion #1 of the specified point (native field:
m_contactMotion1).
|
static float |
getContactMotion2(long manifoldPointId)
Return the contact motion #2 of the specified point (native field:
m_contactMotion2).
|
static float |
getDistance1(long manifoldPointId)
Return the separation distance of the specified point (native field:
m_distance1).
|
static int |
getFlags(long manifoldPointId)
Return the flags of the specified point (native field:
m_contactPointFlags).
|
static int |
getIndex0(long manifoldPointId)
Return the triangle index from the shape of object A at the specified
point of contact (native field: m_index0).
|
static int |
getIndex1(long manifoldPointId)
Return the triangle index from the shape of object B at the specified
point of contact (native field: m_index1).
|
static void |
getLateralFrictionDir1(long manifoldPointId,
Vector3f storeVector)
Determine the lateral friction direction #1 of the specified point
(native field: m_lateralFrictionDir1).
|
static void |
getLateralFrictionDir2(long manifoldPointId,
Vector3f storeVector)
Determine the lateral friction direction #2 of the specified point
(native field: m_lateralFrictionDir2).
|
static int |
getLifeTime(long manifoldPointId)
Return the lifetime of the specified point (native name: m_lifeTime).
|
static void |
getLocalPointA(long manifoldPointId,
Vector3f storeVector)
Determine the location of the specified point in the local coordinates of
object A (native name: m_localPointA).
|
static void |
getLocalPointB(long manifoldPointId,
Vector3f storeVector)
Determine the location of the specified point in the local coordinates of
object B (native name: m_localPointB).
|
static void |
getNormalWorldOnB(long manifoldPointId,
Vector3f storeVector)
Determine the normal on object B of the specified point in physics-space
coordinates (native name: m_normalWorldOnB).
|
static int |
getPartId0(long manifoldPointId)
Return the part index from the shape of object A at the specified point
of contact (native field: m_partId0).
|
static int |
getPartId1(long manifoldPointId)
Return the part index from the shape of object B at the specified point
of contact (native field: m_partId1).
|
static void |
getPositionWorldOnA(long manifoldPointId,
Vector3f storeVector)
Determine the location of the specified point on object A in
physics-space coordinates (native field: m_positionWorldOnA).
|
static void |
getPositionWorldOnADp(long manifoldPointId,
Vec3d storeVector)
Determine the location of the specified point on object A in
physics-space coordinates (native field: m_positionWorldOnA).
|
static void |
getPositionWorldOnB(long manifoldPointId,
Vector3f storeVector)
Determine the location of the specified point on object B in
physics-space coordinates (native field: m_positionWorldOnB).
|
static void |
getPositionWorldOnBDp(long manifoldPointId,
Vec3d storeVector)
Determine the location of the specified point on object B in
physics-space coordinates (native field: m_positionWorldOnB).
|
static boolean |
isContactCalcArea3Points()
Determine how many points are used to calculate the area of the convex
hull of a contact point.
|
static void |
setAppliedImpulse(long manifoldPointId,
float impulse)
Alter the applied impulse of the specified point (native field:
m_appliedImpulse).
|
static void |
setAppliedImpulseLateral1(long manifoldPointId,
float impulse)
Alter the applied lateral impulse #1 of the specified point (native
field: m_appliedImpulseLateral1).
|
static void |
setAppliedImpulseLateral2(long manifoldPointId,
float impulse)
Alter the applied lateral impulse #2 of the specified point (native
field: m_appliedImpulseLateral2).
|
static void |
setCombinedFriction(long manifoldPointId,
float friction)
Alter the combined friction of the specified point (native field:
m_combinedFriction).
|
static void |
setCombinedRestitution(long manifoldPointId,
float restitution)
Alter the combined restitution of the specified point (native field:
m_combinedRestitution).
|
static void |
setCombinedRollingFriction(long manifoldPointId,
float friction)
Alter the combined rolling friction of the specified point (native field:
m_combinedRollingFriction).
|
static void |
setCombinedSpinningFriction(long manifoldPointId,
float friction)
Alter the combined spinning friction of the specified point (native
field: m_combinedSpinningFriction).
|
static void |
setContactCalcArea3Points(boolean setting)
Alter the number of points used to calculate the area of the convex hull
of a contact point.
|
static void |
setContactMotion1(long manifoldPointId,
float motion)
Alter the contact motion #1 of the specified point (native field:
m_contactMotion1).
|
static void |
setContactMotion2(long manifoldPointId,
float motion)
Alter the contact motion #2 of the specified point (native field:
m_contactMotion2).
|
static void |
setDistance1(long manifoldPointId,
float distance)
Alter the separation distance of the specified point (native field:
m_distance1).
|
static void |
setFlags(long manifoldPointId,
int bitmask)
Alter the flags of the specified point (native field:
m_contactPointFlags).
|
static void |
setLateralFrictionDir1(long manifoldPointId,
Vector3f direction)
Alter the lateral friction direction #1 of the specified point (native
field: m_lateralFrictionDir1).
|
static void |
setLateralFrictionDir2(long manifoldPointId,
Vector3f direction)
Alter the lateral friction direction #2 of the specified point (native
field: m_lateralFrictionDir2).
|
static void |
setLocalPointA(long manifoldPointId,
Vector3f locationVector)
Alter the location of the specified point in the local coordinates of
object A (native name: m_localPointA).
|
static void |
setLocalPointB(long manifoldPointId,
Vector3f locationVector)
Alter the location of the specified point in the local coordinates of
object B (native name: m_localPointB).
|
static void |
setNormalWorldOnB(long manifoldPointId,
Vector3f normalVector)
Alter the normal on object B of the specified point in physics-space
coordinates (native name: m_normalWorldOnB).
|
static void |
setPositionWorldOnA(long manifoldPointId,
Vector3f locationVector)
Alter the location of the specified point on object A in physics-space
coordinates (native field: m_positionWorldOnA).
|
static void |
setPositionWorldOnB(long manifoldPointId,
Vector3f locationVector)
Alter the location of the specified point on object B in physics-space
coordinates (native field: m_positionWorldOnB).
|
public static final java.util.logging.Logger logger
public static long createTestPoint()
btManifoldPoint (not zero)public static float getAppliedImpulse(long manifoldPointId)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)public static float getAppliedImpulseLateral1(long manifoldPointId)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)public static float getAppliedImpulseLateral2(long manifoldPointId)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)public static float getCombinedFriction(long manifoldPointId)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)public static float getCombinedRestitution(long manifoldPointId)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)public static float getCombinedRollingFriction(long manifoldPointId)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)public static float getCombinedSpinningFriction(long manifoldPointId)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)public static float getContactMotion1(long manifoldPointId)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)public static float getContactMotion2(long manifoldPointId)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)public static float getDistance1(long manifoldPointId)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)public static int getFlags(long manifoldPointId)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)ContactPointFlagpublic static int getIndex0(long manifoldPointId)
If shape 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.
manifoldPointId - the native ID of the btManifoldPoint (not
zero)public static int getIndex1(long manifoldPointId)
If shape 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.
manifoldPointId - the native ID of the btManifoldPoint (not
zero)public static void getLateralFrictionDir1(long manifoldPointId,
Vector3f storeVector)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)storeVector - storage for the result (not null, modified)public static void getLateralFrictionDir2(long manifoldPointId,
Vector3f storeVector)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)storeVector - storage for the result (not null, modified)public static int getLifeTime(long manifoldPointId)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)public static void getLocalPointA(long manifoldPointId,
Vector3f storeVector)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)storeVector - storage for the result (not null, modified)public static void getLocalPointB(long manifoldPointId,
Vector3f storeVector)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)storeVector - storage for the result (not null, modified)public static void getNormalWorldOnB(long manifoldPointId,
Vector3f storeVector)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)storeVector - storage for the result (not null, modified)public static int getPartId0(long manifoldPointId)
If the shape 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.
manifoldPointId - the native ID of the btManifoldPoint (not
zero)public static int getPartId1(long manifoldPointId)
If the shape 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.
manifoldPointId - the native ID of the btManifoldPoint (not
zero)public static void getPositionWorldOnA(long manifoldPointId,
Vector3f storeVector)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)storeVector - storage for the result (not null, modified)public static void getPositionWorldOnADp(long manifoldPointId,
Vec3d storeVector)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)storeVector - storage for the result (not null, modified)public static void getPositionWorldOnB(long manifoldPointId,
Vector3f storeVector)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)storeVector - storage for the result (modified if not null)public static void getPositionWorldOnBDp(long manifoldPointId,
Vec3d storeVector)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)storeVector - storage for the result (modified if not null)public static boolean isContactCalcArea3Points()
public static void setAppliedImpulse(long manifoldPointId,
float impulse)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)impulse - the desired impulsepublic static void setAppliedImpulseLateral1(long manifoldPointId,
float impulse)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)impulse - the desired impulsepublic static void setAppliedImpulseLateral2(long manifoldPointId,
float impulse)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)impulse - the desired impulsepublic static void setCombinedFriction(long manifoldPointId,
float friction)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)friction - the desired frictionpublic static void setCombinedRestitution(long manifoldPointId,
float restitution)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)restitution - the desired restitutionpublic static void setCombinedRollingFriction(long manifoldPointId,
float friction)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)friction - the desired frictionpublic static void setCombinedSpinningFriction(long manifoldPointId,
float friction)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)friction - the combined frictionpublic static void setContactCalcArea3Points(boolean setting)
setting - true to use 3 points (faster), false to use 4 points (more
accurate) (default=true)public static void setContactMotion1(long manifoldPointId,
float motion)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)motion - the desired motionpublic static void setContactMotion2(long manifoldPointId,
float motion)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)motion - the desired motionpublic static void setDistance1(long manifoldPointId,
float distance)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)distance - the desired distance (in physics-space units)public static void setFlags(long manifoldPointId,
int bitmask)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)bitmask - the desired bitmaskContactPointFlagpublic static void setLateralFrictionDir1(long manifoldPointId,
Vector3f direction)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)direction - the desired direction (in physics-space coordinates, not
null, unaffected)public static void setLateralFrictionDir2(long manifoldPointId,
Vector3f direction)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)direction - the desired direction (in physics-space coordinates, not
null, unaffected)public static void setLocalPointA(long manifoldPointId,
Vector3f locationVector)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)locationVector - the desired location (not null, unaffected)public static void setLocalPointB(long manifoldPointId,
Vector3f locationVector)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)locationVector - the desired location (not null, unaffected)public static void setNormalWorldOnB(long manifoldPointId,
Vector3f normalVector)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)normalVector - the desired normal (not null, unaffected)public static void setPositionWorldOnA(long manifoldPointId,
Vector3f locationVector)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)locationVector - the desired location (not null, unaffected)public static void setPositionWorldOnB(long manifoldPointId,
Vector3f locationVector)
manifoldPointId - the native ID of the btManifoldPoint (not
zero)locationVector - the desired location (not null, unaffected)