java.lang.Object
physx.NativeObject
physx.particles.PxParticleCloth
-
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 PxParticleClotharrayGet(long baseAddress, int index) static PxParticleClothcreateAt(long address) static <T> PxParticleClothcreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()floatintintfloatfloatintintvoidsetClothBlendScale(float value) voidsetNumTriangles(int value) voidsetNumVertices(int value) voidsetPressure(float value) voidsetRestVolume(float value) voidsetStartTriangleIndex(int value) voidsetStartVertexIndex(int value) static PxParticleClothwrapPointer(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
-
PxParticleCloth
protected PxParticleCloth(long address) -
PxParticleCloth
public PxParticleCloth()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxParticleCloth
-
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 PxParticleCloth
-
destroy
public void destroy() -
getStartVertexIndex
public int getStartVertexIndex()- Returns:
- WebIDL type: unsigned long
-
setStartVertexIndex
public void setStartVertexIndex(int value) - Parameters:
value- WebIDL type: unsigned long
-
getNumVertices
public int getNumVertices()- Returns:
- WebIDL type: unsigned long
-
setNumVertices
public void setNumVertices(int value) - Parameters:
value- WebIDL type: unsigned long
-
getClothBlendScale
public float getClothBlendScale()- Returns:
- WebIDL type: float
-
setClothBlendScale
public void setClothBlendScale(float value) - Parameters:
value- WebIDL type: float
-
getRestVolume
public float getRestVolume()- Returns:
- WebIDL type: float
-
setRestVolume
public void setRestVolume(float value) - Parameters:
value- WebIDL type: float
-
getPressure
public float getPressure()- Returns:
- WebIDL type: float
-
setPressure
public void setPressure(float value) - Parameters:
value- WebIDL type: float
-
getStartTriangleIndex
public int getStartTriangleIndex()- Returns:
- WebIDL type: unsigned long
-
setStartTriangleIndex
public void setStartTriangleIndex(int value) - Parameters:
value- WebIDL type: unsigned long
-
getNumTriangles
public int getNumTriangles()- Returns:
- WebIDL type: unsigned long
-
setNumTriangles
public void setNumTriangles(int value) - Parameters:
value- WebIDL type: unsigned long
-