java.lang.Object
physx.NativeObject
physx.extensions.PxJointLimitParameters
physx.extensions.PxJointLinearLimit
Describes a one-sided linear limit.
-
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
ConstructorsModifierConstructorDescriptionprotectedPxJointLinearLimit(float extent, PxSpring spring) construct a linear soft limitprotectedPxJointLinearLimit(long address) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxJointLinearLimitarrayGet(long baseAddress, int index) static PxJointLinearLimitstatic <T> PxJointLinearLimitcreateAt(T allocator, NativeObject.Allocator<T> allocate, float extent, PxSpring spring) voiddestroy()floatgetValue()the extent of the limit.voidsetValue(float value) the extent of the limit.static PxJointLinearLimitwrapPointer(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
-
PxJointLinearLimit
protected PxJointLinearLimit() -
PxJointLinearLimit
protected PxJointLinearLimit(long address) -
PxJointLinearLimit
construct a linear soft limit- Parameters:
extent- the extent of the limitspring- the stiffness and damping parameters for the limit spring- See Also:
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.extent- WebIDL type: floatspring- WebIDL type:PxSpring[Const, Ref]- Returns:
- Stack allocated object of PxJointLinearLimit
-
createAt
public static <T> PxJointLinearLimit createAt(T allocator, NativeObject.Allocator<T> allocate, float extent, 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.extent- WebIDL type: floatspring- WebIDL type:PxSpring[Const, Ref]- Returns:
- Stack allocated object of PxJointLinearLimit
-
destroy
public void destroy() -
getValue
public float getValue()the extent of the limit.Range: (0, PX_MAX_F32)
Default: PX_MAX_F32 -
setValue
public void setValue(float value) the extent of the limit.Range: (0, PX_MAX_F32)
Default: PX_MAX_F32
-