java.lang.Object
physx.NativeObject
physx.physics.PxArticulationLimit
Data structure to set articulation joint limits.
- The lower limit should be strictly smaller than the higher limit. If the limits should be equal, use PxArticulationMotion::eLOCKED and an appropriate offset in the parent/child joint frames. - The limit units are linear units (equivalent to scene units) for a translational axis, or radians for a rotational axis.
- 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
ConstructorsModifierConstructorDescriptionPxArticulationLimit(float low, float high) protectedPxArticulationLimit(long address) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxArticulationLimitarrayGet(long baseAddress, int index) static PxArticulationLimitcreateAt(long address) static PxArticulationLimitcreateAt(long address, float low, float high) static <T> PxArticulationLimitcreateAt(T allocator, NativeObject.Allocator<T> allocate) static <T> PxArticulationLimitcreateAt(T allocator, NativeObject.Allocator<T> allocate, float low, float high) voiddestroy()floatgetHigh()The higher limit on the joint axis position.floatgetLow()The lower limit on the joint axis position.voidsetHigh(float value) The higher limit on the joint axis position.voidsetLow(float value) The lower limit on the joint axis position.static PxArticulationLimitwrapPointer(long address) Methods 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
-
PxArticulationLimit
protected PxArticulationLimit(long address) -
PxArticulationLimit
public PxArticulationLimit() -
PxArticulationLimit
public PxArticulationLimit(float low, float high) - Parameters:
low- WebIDL type: floathigh- WebIDL type: float
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxArticulationLimit
-
createAt
- 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.- Returns:
- Stack allocated object of PxArticulationLimit
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.low- WebIDL type: floathigh- WebIDL type: float- Returns:
- Stack allocated object of PxArticulationLimit
-
createAt
public static <T> PxArticulationLimit createAt(T allocator, NativeObject.Allocator<T> allocate, float low, float high) - 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.low- WebIDL type: floathigh- WebIDL type: float- Returns:
- Stack allocated object of PxArticulationLimit
-
destroy
public void destroy() -
getLow
public float getLow()The lower limit on the joint axis position.Range: [-PX_MAX_F32, high)
Default: 0.0f -
setLow
public void setLow(float value) The lower limit on the joint axis position.Range: [-PX_MAX_F32, high)
Default: 0.0f -
getHigh
public float getHigh()The higher limit on the joint axis position.Range: (low, PX_MAX_F32]
Default: 0.0f -
setHigh
public void setHigh(float value) The higher limit on the joint axis position.Range: (low, PX_MAX_F32]
Default: 0.0f
-