java.lang.Object
physx.NativeObject
physx.physics.PxConstraintInfo
Descriptor for a broken constraint.
An array of these structs gets passed to the PxSimulationEventCallback::onConstraintBreak() report.
- See Also:
-
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 PxConstraintInfoarrayGet(long baseAddress, int index) voiddestroy()The broken constraint.The external object which owns the constraint (see #PxConstraintConnector::getExternalReference())intgetType()Unique type ID of the external object.voidsetConstraint(PxConstraint value) The broken constraint.voidsetExternalReference(NativeObject value) The external object which owns the constraint (see #PxConstraintConnector::getExternalReference())voidsetType(int value) Unique type ID of the external object.static PxConstraintInfowrapPointer(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
-
PxConstraintInfo
protected PxConstraintInfo() -
PxConstraintInfo
protected PxConstraintInfo(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getConstraint
The broken constraint. -
setConstraint
The broken constraint. -
getExternalReference
The external object which owns the constraint (see #PxConstraintConnector::getExternalReference()) -
setExternalReference
The external object which owns the constraint (see #PxConstraintConnector::getExternalReference()) -
getType
public int getType()Unique type ID of the external object. Allows to cast the provided external reference to the appropriate type -
setType
public void setType(int value) Unique type ID of the external object. Allows to cast the provided external reference to the appropriate type
-