java.lang.Object
physx.NativeObject
physx.extensions.PxJointLimitParameters
physx.extensions.PxJointAngularLimitPair
-
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
ConstructorsModifierConstructorDescriptionprotectedPxJointAngularLimitPair(float lowerLimit, float upperLimit) construct an angular hard limit pair.PxJointAngularLimitPair(float lowerLimit, float upperLimit, PxSpring spring) construct an angular soft limit pair.protectedPxJointAngularLimitPair(long address) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxJointAngularLimitPairarrayGet(long baseAddress, int index) static PxJointAngularLimitPaircreateAt(long address, float lowerLimit, float upperLimit) static PxJointAngularLimitPairstatic <T> PxJointAngularLimitPaircreateAt(T allocator, NativeObject.Allocator<T> allocate, float lowerLimit, float upperLimit) static <T> PxJointAngularLimitPaircreateAt(T allocator, NativeObject.Allocator<T> allocate, float lowerLimit, float upperLimit, PxSpring spring) voiddestroy()floatgetLower()the range of the limit.floatgetUpper()voidsetLower(float value) the range of the limit.voidsetUpper(float value) static PxJointAngularLimitPairwrapPointer(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
-
PxJointAngularLimitPair
protected PxJointAngularLimitPair() -
PxJointAngularLimitPair
protected PxJointAngularLimitPair(long address) -
PxJointAngularLimitPair
public PxJointAngularLimitPair(float lowerLimit, float upperLimit) construct an angular hard limit pair.The lower value must be less than the upper value.
- Parameters:
lowerLimit- The lower angle of the limitupperLimit- The upper angle of the limit- See Also:
-
PxJointAngularLimitPair
construct an angular soft limit pair.The lower value must be less than the upper value.
- Parameters:
lowerLimit- The lower angle of the limitupperLimit- The upper angle of the limitspring- 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.lowerLimit- WebIDL type: floatupperLimit- WebIDL type: float- Returns:
- Stack allocated object of PxJointAngularLimitPair
-
createAt
public static <T> PxJointAngularLimitPair createAt(T allocator, NativeObject.Allocator<T> allocate, float lowerLimit, float upperLimit) - 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.lowerLimit- WebIDL type: floatupperLimit- WebIDL type: float- Returns:
- Stack allocated object of PxJointAngularLimitPair
-
createAt
public static PxJointAngularLimitPair createAt(long address, float lowerLimit, float upperLimit, PxSpring spring) - Parameters:
address- Pre-allocated memory, where the object is created.lowerLimit- WebIDL type: floatupperLimit- WebIDL type: floatspring- WebIDL type:PxSpring[Const, Ref]- Returns:
- Stack allocated object of PxJointAngularLimitPair
-
createAt
public static <T> PxJointAngularLimitPair createAt(T allocator, NativeObject.Allocator<T> allocate, float lowerLimit, float upperLimit, 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.lowerLimit- WebIDL type: floatupperLimit- WebIDL type: floatspring- WebIDL type:PxSpring[Const, Ref]- Returns:
- Stack allocated object of PxJointAngularLimitPair
-
destroy
public void destroy() -
getUpper
public float getUpper()- Returns:
- WebIDL type: float
-
setUpper
public void setUpper(float value) - Parameters:
value- WebIDL type: float
-
getLower
public float getLower()the range of the limit. The upper limit must be no lower than the lower limit.Unit: Angular: Radians Range: See the joint on which the limit is used for details
Default: lower = -PI/2, upper = PI/2 -
setLower
public void setLower(float value) the range of the limit. The upper limit must be no lower than the lower limit.Unit: Angular: Radians Range: See the joint on which the limit is used for details
Default: lower = -PI/2, upper = PI/2
-