java.lang.Object
physx.NativeObject
physx.extensions.PxJointLimitParameters
physx.extensions.PxJointLimitCone
Describes an elliptical conical joint limit. Note that very small or highly elliptical limit cones may
result in jitter.
- 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
ConstructorsModifierConstructorDescriptionprotectedPxJointLimitCone(float yLimitAngle, float zLimitAngle, PxSpring spring) Construct a cone soft limit.protectedPxJointLimitCone(long address) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxJointLimitConearrayGet(long baseAddress, int index) voiddestroy()floatthe maximum angle from the Y axis of the constraint frame.floatthe maximum angle from the Z-axis of the constraint frame.voidsetYAngle(float value) the maximum angle from the Y axis of the constraint frame.voidsetZAngle(float value) the maximum angle from the Z-axis of the constraint frame.static PxJointLimitConewrapPointer(long address) Methods inherited from class physx.extensions.PxJointLimitParameters
getBounceThreshold, getDamping, getRestitution, getStiffness, isSoft, isValid, setBounceThreshold, setDamping, setRestitution, setStiffnessMethods 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
-
PxJointLimitCone
protected PxJointLimitCone() -
PxJointLimitCone
protected PxJointLimitCone(long address) -
PxJointLimitCone
Construct a cone soft limit.- Parameters:
yLimitAngle- The limit angle from the Y-axis of the constraint framezLimitAngle- The limit angle from the Z-axis of the constraint framespring- The stiffness and damping of the limit spring- See Also:
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getYAngle
public float getYAngle()the maximum angle from the Y axis of the constraint frame.Unit: Angular: Radians Range: Angular: (0,PI)
Default: PI/2 -
setYAngle
public void setYAngle(float value) the maximum angle from the Y axis of the constraint frame.Unit: Angular: Radians Range: Angular: (0,PI)
Default: PI/2 -
getZAngle
public float getZAngle()the maximum angle from the Z-axis of the constraint frame.Unit: Angular: Radians Range: Angular: (0,PI)
Default: PI/2 -
setZAngle
public void setZAngle(float value) the maximum angle from the Z-axis of the constraint frame.Unit: Angular: Radians Range: Angular: (0,PI)
Default: PI/2
-