java.lang.Object
physx.NativeObject
physx.common.PxBase
physx.physics.PxArticulationTendon
- Direct Known Subclasses:
PxArticulationFixedTendon,PxArticulationSpatialTendon
Common API base class shared by PxArticulationSpatialTendon and PxArticulationFixedTendon.
-
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 PxArticulationTendonarrayGet(long baseAddress, int index) voiddestroy()Gets the articulation that the tendon is a part of.floatGets the damping term acting both on the tendon length and tendon-length limits.floatGets the limit stiffness term acting on the tendon's length limits.floatGets the length offset term for the tendon.floatGets the spring stiffness of the tendon.voidsetDamping(float damping) Sets the damping term acting both on the tendon length and tendon-length limits.voidsetLimitStiffness(float stiffness) Sets the limit stiffness term acting on the tendon's length limits.voidsetOffset(float offset) Sets the length offset term for the tendon.voidsetOffset(float offset, boolean autowake) Sets the length offset term for the tendon.voidsetStiffness(float stiffness) Sets the spring stiffness term acting on the tendon length.static PxArticulationTendonwrapPointer(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
-
PxArticulationTendon
protected PxArticulationTendon() -
PxArticulationTendon
protected PxArticulationTendon(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
setStiffness
public void setStiffness(float stiffness) Sets the spring stiffness term acting on the tendon length.- Parameters:
stiffness- The spring stiffness. Default: 0- See Also:
-
getStiffness
public float getStiffness()Gets the spring stiffness of the tendon.- Returns:
- The spring stiffness.
- See Also:
-
setDamping
public void setDamping(float damping) Sets the damping term acting both on the tendon length and tendon-length limits.- Parameters:
damping- The damping term. Default: 0- See Also:
-
getDamping
public float getDamping()Gets the damping term acting both on the tendon length and tendon-length limits.- Returns:
- The damping term.
- See Also:
-
setLimitStiffness
public void setLimitStiffness(float stiffness) Sets the limit stiffness term acting on the tendon's length limits.For spatial tendons, this parameter applies to all its leaf attachments / sub-tendons.
- Parameters:
stiffness- The limit stiffness term. Default: 0- See Also:
-
getLimitStiffness
public float getLimitStiffness()Gets the limit stiffness term acting on the tendon's length limits.For spatial tendons, this parameter applies to all its leaf attachments / sub-tendons.
- Returns:
- The limit stiffness term.
- See Also:
-
setOffset
public void setOffset(float offset) Sets the length offset term for the tendon.An offset defines an amount to be added to the accumulated length computed for the tendon. It allows the application to actuate the tendon by shortening or lengthening it.
- Parameters:
offset- The offset term. Default: 0 to #PxSceneDesc::wakeCounterResetValue if the counter value is below the reset value.- See Also:
-
setOffset
public void setOffset(float offset, boolean autowake) Sets the length offset term for the tendon.An offset defines an amount to be added to the accumulated length computed for the tendon. It allows the application to actuate the tendon by shortening or lengthening it.
- Parameters:
offset- The offset term. Default: 0autowake- If true and the articulation is in a scene, the call wakes up the articulation and increases the wake counter to #PxSceneDesc::wakeCounterResetValue if the counter value is below the reset value.- See Also:
-
getOffset
public float getOffset()Gets the length offset term for the tendon.- Returns:
- The offset term.
- See Also:
-
getArticulation
Gets the articulation that the tendon is a part of.- Returns:
- The articulation.
- See Also:
-