java.lang.Object
physx.NativeObject
physx.geometry.PxContactPoint
-
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 PxContactPointarrayGet(long baseAddress, int index) voiddestroy()floatfloatThe dynamic friction coefficientintThe surface index of shape 1 at the contact point.bytefloatThe max impulse permitted at this pointgetPoint()floatThe restitution coefficientfloatThe separation of the shapes at the contact point.floatThe static friction coefficientvoidsetDamping(float value) voidsetDynamicFriction(float value) The dynamic friction coefficientvoidsetInternalFaceIndex1(int value) The surface index of shape 1 at the contact point.voidsetMaterialFlags(byte value) voidsetMaxImpulse(float value) The max impulse permitted at this pointvoidvoidvoidsetRestitution(float value) The restitution coefficientvoidsetSeparation(float value) The separation of the shapes at the contact point.voidsetStaticFriction(float value) The static friction coefficientvoidsetTargetVel(PxVec3 value) static PxContactPointwrapPointer(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
-
PxContactPoint
protected PxContactPoint(long address) -
PxContactPoint
public PxContactPoint()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getNormal
- Returns:
- WebIDL type:
PxVec3[Value]
-
setNormal
- Parameters:
value- WebIDL type:PxVec3[Value]
-
getPoint
- Returns:
- WebIDL type:
PxVec3[Value]
-
setPoint
- Parameters:
value- WebIDL type:PxVec3[Value]
-
getTargetVel
- Returns:
- WebIDL type:
PxVec3[Value]
-
setTargetVel
- Parameters:
value- WebIDL type:PxVec3[Value]
-
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. -
getMaxImpulse
public float getMaxImpulse()The max impulse permitted at this point -
setMaxImpulse
public void setMaxImpulse(float value) The max impulse permitted at this point -
getStaticFriction
public float getStaticFriction()The static friction coefficient -
setStaticFriction
public void setStaticFriction(float value) The static friction coefficient -
getMaterialFlags
public byte getMaterialFlags() -
setMaterialFlags
public void setMaterialFlags(byte value) -
getInternalFaceIndex1
public int getInternalFaceIndex1()The surface index of shape 1 at the contact point. This is used to identify the surface material.Note: This field is only supported by triangle meshes and heightfields, else it will be set to PXC_CONTACT_NO_FACE_INDEX. Note: This value must be directly after internalFaceIndex0 in memory
-
setInternalFaceIndex1
public void setInternalFaceIndex1(int value) The surface index of shape 1 at the contact point. This is used to identify the surface material.Note: This field is only supported by triangle meshes and heightfields, else it will be set to PXC_CONTACT_NO_FACE_INDEX. Note: This value must be directly after internalFaceIndex0 in memory
-
getDynamicFriction
public float getDynamicFriction()The dynamic friction coefficient -
setDynamicFriction
public void setDynamicFriction(float value) The dynamic friction coefficient -
getRestitution
public float getRestitution()The restitution coefficient -
setRestitution
public void setRestitution(float value) The restitution coefficient -
getDamping
public float getDamping() -
setDamping
public void setDamping(float value)
-