java.lang.Object
physx.NativeObject
physx.common.PxBase
physx.physics.PxActor
physx.particles.PxParticleSystem
physx.particles.PxPBDParticleSystem
A particle system that uses the position based dynamics(PBD) solver.
The position based dynamics solver for particle systems supports behaviors like fluid, cloth, inflatables etc.
-
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 PxPBDParticleSystemarrayGet(long baseAddress, int index) voiddestroy()Returns string name of dynamic type.floatReturn the fluid boundary density scalefloatReturn the fluid rest offsetgetWind()Retrieves the wind direction and intensity.voidsetFluidBoundaryDensityScale(float fluidBoundaryDensityScale) Set the fluid boundary density scalevoidsetFluidRestOffset(float fluidRestOffset) Set the fluid rest offsetvoidsetGridSizeX(int gridSizeX) Set the particle system grid size x dimensionvoidsetGridSizeY(int gridSizeY) Set the particle system grid size y dimensionvoidsetGridSizeZ(int gridSizeZ) Set the particle system grid size z dimensionvoidSet wind direction and intensitystatic PxPBDParticleSystemwrapPointer(long address) Methods inherited from class physx.particles.PxParticleSystem
addParticleBuffer, addRigidAttachment, createPhase, enableCCD, getContactOffset, getCudaContextManager, getGpuParticleSystemIndex, getMaxDepenetrationVelocity, getMaxVelocity, getNbParticleMaterials, getParticleContactOffset, getParticleFlags, getParticleSystemCallback, getRestOffset, getSimulationFilterData, getSolidRestOffset, removeParticleBuffer, removeRigidAttachment, setContactOffset, setMaxDepenetrationVelocity, setMaxVelocity, setParticleContactOffset, setParticleFlag, setParticleFlags, setParticleSystemCallback, setRestOffset, setSimulationFilterData, setSolidRestOffset, setSolverIterationCountsMethods inherited from class physx.physics.PxActor
getActorFlags, getDominanceGroup, getName, getOwnerClient, getScene, getType, getUserData, getWorldBounds, getWorldBounds, setActorFlag, setActorFlags, setDominanceGroup, setName, setOwnerClient, setUserDataMethods 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
-
PxPBDParticleSystem
protected PxPBDParticleSystem() -
PxPBDParticleSystem
protected PxPBDParticleSystem(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
setWind
Set wind direction and intensity- Parameters:
wind- The wind direction and intensity
-
getWind
Retrieves the wind direction and intensity.- Returns:
- The wind direction and intensity
-
setFluidBoundaryDensityScale
public void setFluidBoundaryDensityScale(float fluidBoundaryDensityScale) Set the fluid boundary density scaleDefines how strong of a contribution the boundary (typically a rigid surface) should have on a fluid particle's density.
- Parameters:
fluidBoundaryDensityScale- Range: (0.0, 1.0)
-
getFluidBoundaryDensityScale
public float getFluidBoundaryDensityScale()Return the fluid boundary density scale- Returns:
- the fluid boundary density scale
See #setFluidBoundaryDensityScale()
-
setFluidRestOffset
public void setFluidRestOffset(float fluidRestOffset) Set the fluid rest offsetTwo fluid particles will come to rest at a distance equal to twice the fluidRestOffset value.
- Parameters:
fluidRestOffset- Range: (0, particleContactOffset)
-
getFluidRestOffset
public float getFluidRestOffset()Return the fluid rest offset- Returns:
- the fluid rest offset
See #setFluidRestOffset()
-
setGridSizeX
public void setGridSizeX(int gridSizeX) Set the particle system grid size x dimension- Parameters:
gridSizeX- x dimension in the particle grid
-
setGridSizeY
public void setGridSizeY(int gridSizeY) Set the particle system grid size y dimension- Parameters:
gridSizeY- y dimension in the particle grid
-
setGridSizeZ
public void setGridSizeZ(int gridSizeZ) Set the particle system grid size z dimension- Parameters:
gridSizeZ- z dimension in the particle grid
-
getConcreteTypeName
Description copied from class:PxBaseReturns string name of dynamic type.- Overrides:
getConcreteTypeNamein classPxBase- Returns:
- WebIDL type: DOMString
-