java.lang.Object
physx.NativeObject
physx.common.PxBase
physx.extensions.PxJoint
- Direct Known Subclasses:
PxD6Joint,PxDistanceJoint,PxFixedJoint,PxPrismaticJoint,PxRevoluteJoint,PxSphericalJoint
-
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 PxJointarrayGet(long baseAddress, int index) floatfloatgetName()getScene()voidsetActors(PxRigidActor actor0, PxRigidActor actor1) voidsetBreakForce(float force, float torque) voidsetConstraintFlag(PxConstraintFlagEnum flag, boolean value) voidvoidsetInvMassScale0(float invMassScale) voidsetInvMassScale1(float invMassScale) voidsetLocalPose(PxJointActorIndexEnum actor, PxTransform localPose) voidvoidsetUserData(NativeObject value) static PxJointwrapPointer(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
-
PxJoint
protected PxJoint() -
PxJoint
protected PxJoint(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
getUserData
- Returns:
- WebIDL type: VoidPtr
-
setUserData
- Parameters:
value- WebIDL type: VoidPtr
-
setActors
- Parameters:
actor0- WebIDL type:PxRigidActoractor1- WebIDL type:PxRigidActor
-
setLocalPose
- Parameters:
actor- WebIDL type:PxJointActorIndexEnum[enum]localPose- WebIDL type:PxTransform[Const, Ref]
-
getLocalPose
- Parameters:
actor- WebIDL type:PxJointActorIndexEnum[enum]- Returns:
- WebIDL type:
PxTransform[Value]
-
getRelativeTransform
- Returns:
- WebIDL type:
PxTransform[Value]
-
getRelativeLinearVelocity
- Returns:
- WebIDL type:
PxVec3[Value]
-
getRelativeAngularVelocity
- Returns:
- WebIDL type:
PxVec3[Value]
-
setBreakForce
public void setBreakForce(float force, float torque) - Parameters:
force- WebIDL type: floattorque- WebIDL type: float
-
setConstraintFlags
- Parameters:
flags- WebIDL type:PxConstraintFlags[Ref]
-
setConstraintFlag
- Parameters:
flag- WebIDL type:PxConstraintFlagEnum[enum]value- WebIDL type: boolean
-
getConstraintFlags
- Returns:
- WebIDL type:
PxConstraintFlags[Value]
-
setInvMassScale0
public void setInvMassScale0(float invMassScale) - Parameters:
invMassScale- WebIDL type: float
-
getInvMassScale0
public float getInvMassScale0()- Returns:
- WebIDL type: float
-
setInvMassScale1
public void setInvMassScale1(float invMassScale) - Parameters:
invMassScale- WebIDL type: float
-
getInvMassScale1
public float getInvMassScale1()- Returns:
- WebIDL type: float
-
getConstraint
- Returns:
- WebIDL type:
PxConstraint
-
setName
- Parameters:
name- WebIDL type: DOMString [Const]
-
getName
- Returns:
- WebIDL type: DOMString [Const]
-
getScene
- Returns:
- WebIDL type:
PxScene
-