java.lang.Object
physx.NativeObject
physx.common.PxBase
physx.physics.PxConstraint
-
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 PxConstraintarrayGet(long baseAddress, int index) getFlags()voidfloatgetScene()booleanisValid()voidvoidsetActors(PxRigidActor actor0, PxRigidActor actor1) voidsetBreakForce(float linear, float angular) voidsetFlag(PxConstraintFlagEnum flag, boolean value) voidsetFlags(PxConstraintFlags flags) voidsetMinResponseThreshold(float threshold) static PxConstraintwrapPointer(long address) Methods inherited from class physx.common.PxBase
getBaseFlags, getConcreteType, getConcreteTypeName, isReleasable, release, setBaseFlag, setBaseFlagsMethods 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
-
PxConstraint
protected PxConstraint() -
PxConstraint
protected PxConstraint(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
getScene
- Returns:
- WebIDL type:
PxScene
-
setActors
- Parameters:
actor0- WebIDL type:PxRigidActoractor1- WebIDL type:PxRigidActor
-
markDirty
public void markDirty() -
setFlags
- Parameters:
flags- WebIDL type:PxConstraintFlags[Ref]
-
getFlags
- Returns:
- WebIDL type:
PxConstraintFlags[Value]
-
setFlag
- Parameters:
flag- WebIDL type:PxConstraintFlagEnum[enum]value- WebIDL type: boolean
-
getForce
-
isValid
public boolean isValid()- Returns:
- WebIDL type: boolean
-
setBreakForce
public void setBreakForce(float linear, float angular) - Parameters:
linear- WebIDL type: floatangular- WebIDL type: float
-
setMinResponseThreshold
public void setMinResponseThreshold(float threshold) - Parameters:
threshold- WebIDL type: float
-
getMinResponseThreshold
public float getMinResponseThreshold()- Returns:
- WebIDL type: float
-