java.lang.Object
physx.NativeObject
physx.physics.PxContactPairPoint
A contact point as used by contact notification
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxContactPairPointarrayGet(long baseAddress, int index) voiddestroy()The impulse applied at the contact point, in world space.intThe surface index of shape 0 at the contact point.intThe surface index of shape 1 at the contact point.The normal of the contacting surfaces at the contact point.The position of the contact point between the shapes, in world space.floatThe separation of the shapes at the contact point.voidsetImpulse(PxVec3 value) The impulse applied at the contact point, in world space.voidsetInternalFaceIndex0(int value) The surface index of shape 0 at the contact point.voidsetInternalFaceIndex1(int value) The surface index of shape 1 at the contact point.voidThe normal of the contacting surfaces at the contact point.voidsetPosition(PxVec3 value) The position of the contact point between the shapes, in world space.voidsetSeparation(float value) The separation of the shapes at the contact point.static PxContactPairPointwrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxContactPairPoint
protected PxContactPairPoint() -
PxContactPairPoint
protected PxContactPairPoint(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getPosition
The position of the contact point between the shapes, in world space. -
setPosition
The position of the contact point between the shapes, in world space. -
getSeparation
public float getSeparation()The separation of the shapes at the contact point. A negative separation denotes a penetration. -
setSeparation
public void setSeparation(float value) The separation of the shapes at the contact point. A negative separation denotes a penetration. -
getNormal
The normal of the contacting surfaces at the contact point. The normal direction points from the second shape to the first shape. -
setNormal
The normal of the contacting surfaces at the contact point. The normal direction points from the second shape to the first shape. -
getInternalFaceIndex0
public int getInternalFaceIndex0()The surface index of shape 0 at the contact point. This is used to identify the surface material. -
setInternalFaceIndex0
public void setInternalFaceIndex0(int value) The surface index of shape 0 at the contact point. This is used to identify the surface material. -
getImpulse
The impulse applied at the contact point, in world space. Divide by the simulation time step to get a force value. -
setImpulse
The impulse applied at the contact point, in world space. Divide by the simulation time step to get a force value. -
getInternalFaceIndex1
public int getInternalFaceIndex1()The surface index of shape 1 at the contact point. This is used to identify the surface material. -
setInternalFaceIndex1
public void setInternalFaceIndex1(int value) The surface index of shape 1 at the contact point. This is used to identify the surface material.
-