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) Construct a cone hard limit.PxJointLimitCone(float yLimitAngle, float zLimitAngle, PxSpring spring) Construct a cone soft limit.protectedPxJointLimitCone(long address) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxJointLimitConearrayGet(long baseAddress, int index) static PxJointLimitConecreateAt(long address, float yLimitAngle, float zLimitAngle) static PxJointLimitConestatic <T> PxJointLimitConecreateAt(T allocator, NativeObject.Allocator<T> allocate, float yLimitAngle, float zLimitAngle) static <T> PxJointLimitConecreateAt(T allocator, NativeObject.Allocator<T> allocate, float yLimitAngle, float zLimitAngle, PxSpring spring) 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
public PxJointLimitCone(float yLimitAngle, float zLimitAngle) Construct a cone hard limit.- Parameters:
yLimitAngle- The limit angle from the Y-axis of the constraint framezLimitAngle- The limit angle from the Z-axis of the constraint frame- See Also:
-
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
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.yLimitAngle- WebIDL type: floatzLimitAngle- WebIDL type: float- Returns:
- Stack allocated object of PxJointLimitCone
-
createAt
public static <T> PxJointLimitCone createAt(T allocator, NativeObject.Allocator<T> allocate, float yLimitAngle, float zLimitAngle) - 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.yLimitAngle- WebIDL type: floatzLimitAngle- WebIDL type: float- Returns:
- Stack allocated object of PxJointLimitCone
-
createAt
public static PxJointLimitCone createAt(long address, float yLimitAngle, float zLimitAngle, PxSpring spring) - Parameters:
address- Pre-allocated memory, where the object is created.yLimitAngle- WebIDL type: floatzLimitAngle- WebIDL type: floatspring- WebIDL type:PxSpring[Const, Ref]- Returns:
- Stack allocated object of PxJointLimitCone
-
createAt
public static <T> PxJointLimitCone createAt(T allocator, NativeObject.Allocator<T> allocate, float yLimitAngle, float zLimitAngle, 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.yLimitAngle- WebIDL type: floatzLimitAngle- WebIDL type: floatspring- WebIDL type:PxSpring[Const, Ref]- Returns:
- Stack allocated object of PxJointLimitCone
-
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
-