java.lang.Object
physx.NativeObject
physx.common.PxBase
physx.common.PxRefCounted
physx.physics.PxBaseMaterial
physx.particles.PxParticleMaterial
physx.particles.PxPBDMaterial
Material class to represent a set of PBD particle material properties.
-
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 PxPBDMaterialarrayGet(long baseAddress, int index) floatRetrieves the CFL coefficient.floatRetrieves the cohesion coefficient.Returns string name of dynamic type.floatgetDrag()Retrieves the drag coefficient.floatgetLift()Retrieves the lift coefficient.floatRetrieves the particle adhesion scale value.floatRetrieves the particle friction scale.floatRetrieves the surface tension coefficient.floatRetrieves the viscosity value.floatRetrieves the vorticity confinement coefficient.voidsetCFLCoefficient(float coefficient) Sets the CFL coefficient.voidsetCohesion(float cohesion) Sets material cohesion coefficientvoidsetDrag(float drag) Sets material drag coefficientvoidsetLift(float lift) Sets material lift coefficientvoidsetParticleAdhesionScale(float adhesion) Sets material particle adhesion scale value.voidsetParticleFrictionScale(float scale) Sets material particle friction scale.voidsetSurfaceTension(float surfaceTension) Sets material surface tension coefficientvoidsetViscosity(float viscosity) Sets viscosityvoidsetVorticityConfinement(float vorticityConfinement) Sets material vorticity confinement coefficientstatic PxPBDMaterialwrapPointer(long address) Methods inherited from class physx.particles.PxParticleMaterial
getAdhesion, getAdhesionRadiusScale, getDamping, getFriction, getGravityScale, setAdhesion, setAdhesionRadiusScale, setDamping, setFriction, setGravityScaleMethods inherited from class physx.physics.PxBaseMaterial
destroyMethods inherited from class physx.common.PxRefCounted
acquireReference, getReferenceCountMethods inherited from class physx.common.PxBase
getBaseFlags, getConcreteType, isReleasable, release, setBaseFlag, setBaseFlagsMethods 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
-
PxPBDMaterial
protected PxPBDMaterial() -
PxPBDMaterial
protected PxPBDMaterial(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
setViscosity
public void setViscosity(float viscosity) Sets viscosity- Parameters:
viscosity- Viscosity. Range: [0, PX_MAX_F32)
-
getViscosity
public float getViscosity()Retrieves the viscosity value.- Returns:
- The viscosity value.
-
setVorticityConfinement
public void setVorticityConfinement(float vorticityConfinement) Sets material vorticity confinement coefficient- Parameters:
vorticityConfinement- Material vorticity confinement coefficient. Range: [0, PX_MAX_F32)
-
getVorticityConfinement
public float getVorticityConfinement()Retrieves the vorticity confinement coefficient.- Returns:
- The vorticity confinement coefficient.
-
setSurfaceTension
public void setSurfaceTension(float surfaceTension) Sets material surface tension coefficient- Parameters:
surfaceTension- Material surface tension coefficient. Range: [0, PX_MAX_F32)
-
getSurfaceTension
public float getSurfaceTension()Retrieves the surface tension coefficient.- Returns:
- The surface tension coefficient.
-
setCohesion
public void setCohesion(float cohesion) Sets material cohesion coefficient- Parameters:
cohesion- Material cohesion coefficient. Range: [0, PX_MAX_F32)
-
getCohesion
public float getCohesion()Retrieves the cohesion coefficient.- Returns:
- The cohesion coefficient.
-
setLift
public void setLift(float lift) Sets material lift coefficient- Parameters:
lift- Material lift coefficient. Range: [0, PX_MAX_F32)
-
getLift
public float getLift()Retrieves the lift coefficient.- Returns:
- The lift coefficient.
-
setDrag
public void setDrag(float drag) Sets material drag coefficient- Parameters:
drag- Material drag coefficient. Range: [0, PX_MAX_F32)
-
getDrag
public float getDrag()Retrieves the drag coefficient.- Returns:
- The drag coefficient.
-
setCFLCoefficient
public void setCFLCoefficient(float coefficient) Sets the CFL coefficient.- Parameters:
coefficient- CFL coefficient. This coefficient scales the CFL term used to limit relative motion between fluid particles. Range: [1.f, PX_MAX_F32)
-
getCFLCoefficient
public float getCFLCoefficient()Retrieves the CFL coefficient.- Returns:
- The CFL coefficient.
-
setParticleFrictionScale
public void setParticleFrictionScale(float scale) Sets material particle friction scale. This allows the application to scale up/down the frictional effect between particles independent of the friction coefficient, which also defines frictional behavior between the particle and rigid bodies/soft bodies/cloth etc.- Parameters:
scale- particle friction scale. Range: [0, PX_MAX_F32)
-
getParticleFrictionScale
public float getParticleFrictionScale()Retrieves the particle friction scale.- Returns:
- The particle friction scale.
-
setParticleAdhesionScale
public void setParticleAdhesionScale(float adhesion) Sets material particle adhesion scale value. This is the adhesive value between particles defined as a scaled multiple of the adhesion parameter.- Parameters:
adhesion- particle adhesion scale value. Range: [0, PX_MAX_F32)
-
getParticleAdhesionScale
public float getParticleAdhesionScale()Retrieves the particle adhesion scale value.- Returns:
- The particle adhesion scale value.
-
getConcreteTypeName
Description copied from class:PxBaseReturns string name of dynamic type.- Overrides:
getConcreteTypeNamein classPxBase- Returns:
- WebIDL type: DOMString
-