Package physx.extensions
Class PxJoint
- java.lang.Object
-
- physx.NativeObject
-
- physx.common.PxBase
-
- physx.extensions.PxJoint
-
- Direct Known Subclasses:
PxDistanceJoint,PxFixedJoint,PxPrismaticJoint,PxRevoluteJoint,PxSphericalJoint
public class PxJoint 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PxConstraintgetConstraint()PxConstraintFlagsgetConstraintFlags()floatgetInvMassScale0()floatgetInvMassScale1()PxTransformgetLocalPose(int actor)java.lang.StringgetName()PxVec3getRelativeAngularVelocity()PxVec3getRelativeLinearVelocity()PxTransformgetRelativeTransform()PxScenegetScene()voidrelease()voidsetActors(PxRigidActor actor0, PxRigidActor actor1)voidsetBreakForce(float force, float torque)voidsetConstraintFlag(int flag, boolean value)voidsetConstraintFlags(PxConstraintFlags flags)voidsetInvMassScale0(float invMassScale)voidsetInvMassScale1(float invMassScale)voidsetLocalPose(int actor, PxTransform localPose)voidsetName(java.lang.String name)static PxJointwrapPointer(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 PxJoint wrapPointer(long address)
-
setActors
public void setActors(PxRigidActor actor0, PxRigidActor actor1)
- Parameters:
actor0- WebIDL type:PxRigidActoractor1- WebIDL type:PxRigidActor
-
setLocalPose
public void setLocalPose(int actor, PxTransform localPose)- Parameters:
actor- WebIDL type:PxJointActorIndexEnum[enum]localPose- WebIDL type:PxTransform[Const, Ref]
-
getLocalPose
public PxTransform getLocalPose(int actor)
- Parameters:
actor- WebIDL type:PxJointActorIndexEnum[enum]- Returns:
- WebIDL type:
PxTransform[Value]
-
getRelativeTransform
public PxTransform getRelativeTransform()
- Returns:
- WebIDL type:
PxTransform[Value]
-
getRelativeLinearVelocity
public PxVec3 getRelativeLinearVelocity()
- Returns:
- WebIDL type:
PxVec3[Value]
-
getRelativeAngularVelocity
public PxVec3 getRelativeAngularVelocity()
- Returns:
- WebIDL type:
PxVec3[Value]
-
setBreakForce
public void setBreakForce(float force, float torque)- Parameters:
force- WebIDL type: floattorque- WebIDL type: float
-
setConstraintFlags
public void setConstraintFlags(PxConstraintFlags flags)
- Parameters:
flags- WebIDL type:PxConstraintFlags[Ref]
-
setConstraintFlag
public void setConstraintFlag(int flag, boolean value)- Parameters:
flag- WebIDL type:PxConstraintFlagEnum[enum]value- WebIDL type: boolean
-
getConstraintFlags
public PxConstraintFlags 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
public PxConstraint getConstraint()
- Returns:
- WebIDL type:
PxConstraint
-
setName
public void setName(java.lang.String name)
- Parameters:
name- WebIDL type: DOMString [Const]
-
getName
public java.lang.String getName()
- Returns:
- WebIDL type: DOMString [Const]
-
-