java.lang.Object
physx.NativeObject
physx.extensions.PxSpring
- Direct Known Subclasses:
PxD6JointDrive
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxSpringarrayGet(long baseAddress, int index) voiddestroy()floatfloatvoidsetDamping(float value) voidsetStiffness(float value) static PxSpringwrapPointer(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
-
PxSpring
protected PxSpring() -
PxSpring
protected PxSpring(long address) -
PxSpring
public PxSpring(float stiffness, float damping) - Parameters:
stiffness- WebIDL type: floatdamping- WebIDL type: float
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getStiffness
public float getStiffness()- Returns:
- WebIDL type: float
-
setStiffness
public void setStiffness(float value) - Parameters:
value- WebIDL type: float
-
getDamping
public float getDamping()- Returns:
- WebIDL type: float
-
setDamping
public void setDamping(float value) - Parameters:
value- WebIDL type: float
-