Package physx.physics
Class PxConstraint
- java.lang.Object
-
- physx.NativeObject
-
- physx.common.PxBase
-
- physx.physics.PxConstraint
-
public class PxConstraint extends PxBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T>
-
-
Field Summary
-
Fields inherited from class physx.NativeObject
address, isExternallyAllocated
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPxConstraint()protectedPxConstraint(long address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PxConstraintFlagsgetFlags()voidgetForce(PxVec3 linear, PxVec3 angular)floatgetMinResponseThreshold()PxScenegetScene()booleanisValid()voidmarkDirty()voidrelease()voidsetActors(PxRigidActor actor0, PxRigidActor actor1)voidsetBreakForce(float linear, float angular)voidsetFlag(int flag, boolean value)voidsetFlags(PxConstraintFlags flags)voidsetMinResponseThreshold(float threshold)static PxConstraintwrapPointer(long address)-
Methods inherited from class physx.common.PxBase
getBaseFlags, getConcreteType, getConcreteTypeName, isReleasable, setBaseFlag, setBaseFlags
-
Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
-
-
-
Method Detail
-
wrapPointer
public static PxConstraint wrapPointer(long address)
-
setActors
public void setActors(PxRigidActor actor0, PxRigidActor actor1)
- Parameters:
actor0- WebIDL type:PxRigidActoractor1- WebIDL type:PxRigidActor
-
markDirty
public void markDirty()
-
setFlags
public void setFlags(PxConstraintFlags flags)
- Parameters:
flags- WebIDL type:PxConstraintFlags[Ref]
-
getFlags
public PxConstraintFlags getFlags()
- Returns:
- WebIDL type:
PxConstraintFlags[Value]
-
setFlag
public void setFlag(int flag, boolean value)- Parameters:
flag- WebIDL type:PxConstraintFlagEnum[enum]value- WebIDL type: boolean
-
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
-
-