java.lang.Object
physx.NativeObject
physx.physics.PxArticulationTendonJoint
Defines a fixed-tendon joint on an articulation joint degree of freedom.
-
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 PxArticulationTendonJointarrayGet(long baseAddress, int index) voiddestroy()getLink()Gets the articulation link.Gets the parent tendon joint.Gets the tendon that the joint is a part of.user can assign this to whatever, usually to create a 1:1 relationship with a user object.voidrelease()Releases a tendon joint.voidsetCoefficient(PxArticulationAxisEnum axis, float coefficient, float recipCoefficient) Sets the tendon joint coefficient.voidsetUserData(NativeObject value) user can assign this to whatever, usually to create a 1:1 relationship with a user object.static PxArticulationTendonJointwrapPointer(long address) Methods 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
-
PxArticulationTendonJoint
protected PxArticulationTendonJoint() -
PxArticulationTendonJoint
protected PxArticulationTendonJoint(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getUserData
user can assign this to whatever, usually to create a 1:1 relationship with a user object. -
setUserData
user can assign this to whatever, usually to create a 1:1 relationship with a user object. -
setCoefficient
Sets the tendon joint coefficient.- Parameters:
axis- The degree of freedom that the tendon joint operates on (must correspond to a degree of freedom of the associated link's incoming joint).coefficient- The scale that the axis' joint position is multiplied by when summing up the fixed tendon's length.recipCoefficient- The scale that the tendon's response is multiplied by when applying to this tendon joint.Note: RecipCoefficient is commonly expected to be 1/coefficient, but it can be set to different values to tune behavior; for example, zero can be used to have a joint axis only participate in the length computation of the tendon, but not have any tendon force applied to it.
-
getLink
Gets the articulation link.- Returns:
- The articulation link (and its incoming joint in particular) that this tendon joint is associated with.
-
getParent
Gets the parent tendon joint.- Returns:
- The parent tendon joint.
-
getTendon
Gets the tendon that the joint is a part of.- Returns:
- The tendon.
- See Also:
-
release
public void release()Releases a tendon joint.Note: Releasing a tendon joint is not allowed while the articulation is in a scene. In order to release the joint, remove and then re-add the articulation to the scene.
-