java.lang.Object
physx.NativeObject
physx.particles.PxDiffuseParticleParams
-
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 PxDiffuseParticleParamsarrayGet(long baseAddress, int index) static PxDiffuseParticleParamscreateAt(long address) static <T> PxDiffuseParticleParamscreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()floatfloatfloatfloatfloatfloatfloatfloatfloatbooleanvoidsetAirDrag(float value) voidsetBubbleDrag(float value) voidsetBuoyancy(float value) voidsetCollisionDecay(float value) voidsetDivergenceWeight(float value) voidsetKineticEnergyWeight(float value) voidsetLifetime(float value) voidsetPressureWeight(float value) voidsetThreshold(float value) voidvoidsetUseAccurateVelocity(boolean value) static PxDiffuseParticleParamswrapPointer(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
-
PxDiffuseParticleParams
protected PxDiffuseParticleParams(long address) -
PxDiffuseParticleParams
public PxDiffuseParticleParams()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxDiffuseParticleParams
-
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 PxDiffuseParticleParams
-
destroy
public void destroy() -
getThreshold
public float getThreshold()- Returns:
- WebIDL type: float
-
setThreshold
public void setThreshold(float value) - Parameters:
value- WebIDL type: float
-
getLifetime
public float getLifetime()- Returns:
- WebIDL type: float
-
setLifetime
public void setLifetime(float value) - Parameters:
value- WebIDL type: float
-
getAirDrag
public float getAirDrag()- Returns:
- WebIDL type: float
-
setAirDrag
public void setAirDrag(float value) - Parameters:
value- WebIDL type: float
-
getBubbleDrag
public float getBubbleDrag()- Returns:
- WebIDL type: float
-
setBubbleDrag
public void setBubbleDrag(float value) - Parameters:
value- WebIDL type: float
-
getBuoyancy
public float getBuoyancy()- Returns:
- WebIDL type: float
-
setBuoyancy
public void setBuoyancy(float value) - Parameters:
value- WebIDL type: float
-
getKineticEnergyWeight
public float getKineticEnergyWeight()- Returns:
- WebIDL type: float
-
setKineticEnergyWeight
public void setKineticEnergyWeight(float value) - Parameters:
value- WebIDL type: float
-
getPressureWeight
public float getPressureWeight()- Returns:
- WebIDL type: float
-
setPressureWeight
public void setPressureWeight(float value) - Parameters:
value- WebIDL type: float
-
getDivergenceWeight
public float getDivergenceWeight()- Returns:
- WebIDL type: float
-
setDivergenceWeight
public void setDivergenceWeight(float value) - Parameters:
value- WebIDL type: float
-
getCollisionDecay
public float getCollisionDecay()- Returns:
- WebIDL type: float
-
setCollisionDecay
public void setCollisionDecay(float value) - Parameters:
value- WebIDL type: float
-
getUseAccurateVelocity
public boolean getUseAccurateVelocity()- Returns:
- WebIDL type: boolean
-
setUseAccurateVelocity
public void setUseAccurateVelocity(boolean value) - Parameters:
value- WebIDL type: boolean
-
setToDefault
public void setToDefault()
-