java.lang.Object
physx.NativeObject
physx.common.PxBase
physx.extensions.PxJoint
physx.extensions.PxPrismaticJoint
A prismatic joint permits relative translational movement between two bodies along
an axis, but no relative rotational movement.
the axis on each body is defined as the line containing the origin of the joint frame and extending along the x-axis of that frame
\image html prismJoint.png
- 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 PxPrismaticJointarrayGet(long baseAddress, int index) voiddestroy()floatreturns the displacement of the joint along its axis.Get the flags specific to the Prismatic Joint.floatreturns the velocity of the joint along its axisvoidsetLimit(PxJointLinearLimitPair limit) sets the joint limit parameters.voidsetPrismaticJointFlag(PxPrismaticJointFlagEnum flag, boolean value) Set a single flag specific to a Prismatic Joint to true or false.voidSet the flags specific to the Prismatic Joint.static PxPrismaticJointwrapPointer(long address) Methods inherited from class physx.extensions.PxJoint
getConstraint, getConstraintFlags, getInvMassScale0, getInvMassScale1, getLocalPose, getName, getRelativeAngularVelocity, getRelativeLinearVelocity, getRelativeTransform, getScene, getUserData, setActors, setBreakForce, setConstraintFlag, setConstraintFlags, setInvMassScale0, setInvMassScale1, setLocalPose, setName, setUserDataMethods 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
-
PxPrismaticJoint
protected PxPrismaticJoint() -
PxPrismaticJoint
protected PxPrismaticJoint(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getPosition
public float getPosition()returns the displacement of the joint along its axis. -
getVelocity
public float getVelocity()returns the velocity of the joint along its axis -
setLimit
sets the joint limit parameters.The limit range is [-PX_MAX_F32, PX_MAX_F32], but note that the width of the limit (upper-lower) must also be a valid float.
- See Also:
-
setPrismaticJointFlags
Set the flags specific to the Prismatic Joint.Default PxPrismaticJointFlags(0)
- Parameters:
flags- The joint flags.
-
setPrismaticJointFlag
Set a single flag specific to a Prismatic Joint to true or false.- Parameters:
flag- The flag to set or clear.value- The value to which to set the flag
-
getPrismaticJointFlags
Get the flags specific to the Prismatic Joint.- Returns:
- the joint flags
-