java.lang.Object
physx.NativeObject
physx.particles.PxParticleSpring
-
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 PxParticleSpringarrayGet(long baseAddress, int index) static PxParticleSpringcreateAt(long address) static <T> PxParticleSpringcreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()floatintgetInd0()intgetInd1()floatfloatgetPad()floatvoidsetDamping(float value) voidsetInd0(int value) voidsetInd1(int value) voidsetLength(float value) voidsetPad(float value) voidsetStiffness(float value) static PxParticleSpringwrapPointer(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
-
PxParticleSpring
protected PxParticleSpring(long address) -
PxParticleSpring
public PxParticleSpring()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxParticleSpring
-
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 PxParticleSpring
-
destroy
public void destroy() -
getInd0
public int getInd0()- Returns:
- WebIDL type: unsigned long
-
setInd0
public void setInd0(int value) - Parameters:
value- WebIDL type: unsigned long
-
getInd1
public int getInd1()- Returns:
- WebIDL type: unsigned long
-
setInd1
public void setInd1(int value) - Parameters:
value- WebIDL type: unsigned long
-
getLength
public float getLength()- Returns:
- WebIDL type: float
-
setLength
public void setLength(float value) - Parameters:
value- WebIDL type: float
-
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
-
getPad
public float getPad()- Returns:
- WebIDL type: float
-
setPad
public void setPad(float value) - Parameters:
value- WebIDL type: float
-