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) Construct a pyramid hard limit.PxJointLimitPyramid(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) static PxJointLimitPyramidcreateAt(long address, float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax) static PxJointLimitPyramidcreateAt(long address, float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, PxSpring spring) static <T> PxJointLimitPyramidcreateAt(T allocator, NativeObject.Allocator<T> allocate, float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax) static <T> PxJointLimitPyramidcreateAt(T allocator, NativeObject.Allocator<T> allocate, float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, PxSpring spring) 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) Construct a pyramid hard 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 frame- See Also:
-
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
-
createAt
public static PxJointLimitPyramid createAt(long address, float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax) - Parameters:
address- Pre-allocated memory, where the object is created.yLimitAngleMin- WebIDL type: floatyLimitAngleMax- WebIDL type: floatzLimitAngleMin- WebIDL type: floatzLimitAngleMax- WebIDL type: float- Returns:
- Stack allocated object of PxJointLimitPyramid
-
createAt
public static <T> PxJointLimitPyramid createAt(T allocator, NativeObject.Allocator<T> allocate, float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax) - Type Parameters:
T- Allocator class, e.g. LWJGL's MemoryStack.- Parameters:
allocator- Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate- Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.yLimitAngleMin- WebIDL type: floatyLimitAngleMax- WebIDL type: floatzLimitAngleMin- WebIDL type: floatzLimitAngleMax- WebIDL type: float- Returns:
- Stack allocated object of PxJointLimitPyramid
-
createAt
public static PxJointLimitPyramid createAt(long address, float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, PxSpring spring) - Parameters:
address- Pre-allocated memory, where the object is created.yLimitAngleMin- WebIDL type: floatyLimitAngleMax- WebIDL type: floatzLimitAngleMin- WebIDL type: floatzLimitAngleMax- WebIDL type: floatspring- WebIDL type:PxSpring[Const, Ref]- Returns:
- Stack allocated object of PxJointLimitPyramid
-
createAt
public static <T> PxJointLimitPyramid createAt(T allocator, NativeObject.Allocator<T> allocate, float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, PxSpring spring) - Type Parameters:
T- Allocator class, e.g. LWJGL's MemoryStack.- Parameters:
allocator- Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate- Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.yLimitAngleMin- WebIDL type: floatyLimitAngleMax- WebIDL type: floatzLimitAngleMin- WebIDL type: floatzLimitAngleMax- WebIDL type: floatspring- WebIDL type:PxSpring[Const, Ref]- Returns:
- Stack allocated object of PxJointLimitPyramid
-
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
-