java.lang.Object
physx.NativeObject
physx.extensions.PxJointLimitParameters
physx.extensions.PxJointLimitPyramid
Describes a pyramidal joint limit.
- 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
ConstructorsModifierConstructorDescriptionprotectedPxJointLimitPyramid(float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, PxSpring spring) Construct a pyramid soft limit.protectedPxJointLimitPyramid(long address) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxJointLimitPyramidarrayGet(long baseAddress, int index) voiddestroy()floatthe maximum angle from the Y axis of the constraint frame.floatthe minimum angle from the Y axis of the constraint frame.floatthe maximum angle from the Z-axis of the constraint frame.floatthe minimum angle from the Z-axis of the constraint frame.voidsetYAngleMax(float value) the maximum angle from the Y axis of the constraint frame.voidsetYAngleMin(float value) the minimum angle from the Y axis of the constraint frame.voidsetZAngleMax(float value) the maximum angle from the Z-axis of the constraint frame.voidsetZAngleMin(float value) the minimum angle from the Z-axis of the constraint frame.static PxJointLimitPyramidwrapPointer(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
-
PxJointLimitPyramid
protected PxJointLimitPyramid() -
PxJointLimitPyramid
protected PxJointLimitPyramid(long address) -
PxJointLimitPyramid
public PxJointLimitPyramid(float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, PxSpring spring) Construct a pyramid soft limit.- Parameters:
yLimitAngleMin- The minimum limit angle from the Y-axis of the constraint frameyLimitAngleMax- The maximum limit angle from the Y-axis of the constraint framezLimitAngleMin- The minimum limit angle from the Z-axis of the constraint framezLimitAngleMax- The maximum 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() -
getYAngleMin
public float getYAngleMin()the minimum angle from the Y axis of the constraint frame.Unit: Angular: Radians Range: Angular: (-PI,PI)
Default: -PI/2 -
setYAngleMin
public void setYAngleMin(float value) the minimum angle from the Y axis of the constraint frame.Unit: Angular: Radians Range: Angular: (-PI,PI)
Default: -PI/2 -
getYAngleMax
public float getYAngleMax()the maximum angle from the Y axis of the constraint frame.Unit: Angular: Radians Range: Angular: (-PI,PI)
Default: PI/2 -
setYAngleMax
public void setYAngleMax(float value) the maximum angle from the Y axis of the constraint frame.Unit: Angular: Radians Range: Angular: (-PI,PI)
Default: PI/2 -
getZAngleMin
public float getZAngleMin()the minimum angle from the Z-axis of the constraint frame.Unit: Angular: Radians Range: Angular: (-PI,PI)
Default: -PI/2 -
setZAngleMin
public void setZAngleMin(float value) the minimum angle from the Z-axis of the constraint frame.Unit: Angular: Radians Range: Angular: (-PI,PI)
Default: -PI/2 -
getZAngleMax
public float getZAngleMax()the maximum angle from the Z-axis of the constraint frame.Unit: Angular: Radians Range: Angular: (-PI,PI)
Default: PI/2 -
setZAngleMax
public void setZAngleMax(float value) the maximum angle from the Z-axis of the constraint frame.Unit: Angular: Radians Range: Angular: (-PI,PI)
Default: PI/2
-