PhysxParticleSystem#

PhysX position-based-dynamics particle system holding the solver settings shared by the particle sets that name it through physxParticle:particleSystem. The runtime parses every prim of this type and creates one GPU PxPBDParticleSystem in the scene its simulationOwner names.

Columns#

Raw fallback is the USD schema value. Producer writes is what ovstage population puts in the column for a USD stage. Parser default applies on the consumer when the column is absent, in stage units. diverges means writing the raw fallback literally parses differently from omitting the column (the parser default): USD population may well publish that very value for an unauthored attribute, so the marker is about the column being present, not about its value.

Column

Type

Units

Raw fallback

Producer writes

Parser default

If absent

particleSystemEnabled

bool8

none

true

resolved USD value (authored, else raw fallback)

true

true: the system is simulated. With false the PxPBDParticleSystem is still created but removed from its scene again, and no particle set buffer is added to it.

simulationOwner

uint64 array, RELATIONSHIP_PATH_ID

not written

The system is created in the attachment’s default scene. Only the first target is used; a target that is not a parsed PhysicsScene also falls back to the default scene.

particleContactOffset

float32

length

0.05

resolved USD value (authored, else raw fallback)

0.05 / metersPerUnit diverges

0.05 / metersPerUnit (5 on a centimeter stage), raised to 1.01 x max(solidRestOffset, fluidRestOffset) when it does not exceed that maximum. Every auto-computed offset of the system derives from this value.

contactOffset

float32

length

-inf

resolved USD value (authored, else raw fallback)

0.0 diverges

Read as 0, which is not the auto sentinel. Creation raises a contactOffset that does not exceed the resolved restOffset to 1.01 x restOffset, so an absent column yields 1.01 x restOffset, which is 0 when restOffset is absent too. Write a negative value (USD’s -inf) for the auto value.

restOffset

float32

length

-inf

resolved USD value (authored, else raw fallback)

0.0 diverges

Read as 0, which is not the auto sentinel: the rest offset for collisions with non-particle objects is 0, and maxDepenetrationVelocity’s absent default becomes 6. Write a negative value (USD’s -inf) for the auto value.

solidRestOffset

float32

length

-inf

resolved USD value (authored, else raw fallback)

0.0 diverges

Read as 0, which is not the auto sentinel: solid particles get a 0 rest offset, and a solid particle set that takes its particle mass from a density gets the minimum rest-offset volume (FLT_EPSILON), hence near-zero particle masses. Write a negative value (USD’s -inf) for the auto value.

fluidRestOffset

float32

length

-inf

resolved USD value (authored, else raw fallback)

0.0 diverges

Read as 0, which is not the auto sentinel: fluid particles get a 0 rest offset, a fluid set that takes its particle mass from a density gets the minimum rest-offset volume, and the auto-computed PhysxParticleIsosurfaceAPI grid spacing, surface distance and smoothing radius collapse to 0. Write a negative value (USD’s -inf) for the auto value.

enableCCD

bool8

none

false

resolved USD value (authored, else raw fallback)

false

false: speculative CCD stays off.

solverPositionIterationCount

int32

none

16

resolved USD value (authored, else raw fallback)

0 diverges

0, clamped at creation into the owning scene’s [physxScene:minPositionIterationCount, physxScene:maxPositionIterationCount]. With that scene’s minimum absent as well (0) the system gets 0 position iterations, which a checked PhysX build rejects with an error (keeping PhysX’s default of 4). USD’s fallback is 16, so write the value.

maxDepenetrationVelocity

float32

length/s

inf

resolved USD value (authored, else raw fallback)

6.0 diverges

30 x the resolved restOffset, or 6 when the resolved restOffset is 0, which it always is when restOffset is absent too; the constant 6 is not scaled by metersPerUnit. USD’s fallback inf, written literally, reaches PhysX as an unbounded velocity.

wind

float32[3]

length/s

(0, 0, 0)

resolved USD value (authored, else raw fallback)

(0, 0, 0)

No wind, (0, 0, 0).

maxNeighborhood

int32

none

96

resolved USD value (authored, else raw fallback)

0 diverges

0 is passed to PhysX as the per-particle neighbor capacity when the system is created; PhysX’s own default is 96. USD’s fallback is 96, so write the value.

neighborhoodScale

float32

none

1.01

resolved USD value (authored, else raw fallback)

0.0 diverges

0 is passed to PhysX as the neighborhood scale when the system is created; PhysX’s own default is 1.01. USD’s fallback is 1.01, so write the value.

maxVelocity

float32

length/s

inf

resolved USD value (authored, else raw fallback)

FLT_MAX

FLT_MAX, unbounded. USD’s fallback inf is passed through and is equally unbounded.

Interactions#

  • PhysicsScene: simulationOwner selects the scene. Without any scene the runtime reports ‘No physics scene created, please add physics scene into stage!’; without a CUDA context manager on the scene it logs ‘PhysX Particle System creation failed due to missing PxCudaContextManager.’; in both cases nothing is created. solverPositionIterationCount is clamped into the scene’s position iteration bounds (PhysxSceneAPI).

  • PhysxPBDMaterialAPI: The material bound to the system prim is its PBD particle material; without a binding the system uses the scene’s default PBD material. Particle masses from density fall back to that material’s density.

  • PhysicsFilteredPairsAPI: physics:filteredPairs targets are read on the system prim without checking that the API is listed.

  • PhysxParticleSetAPI: Sets name the system through physxParticle:particleSystem and copy its scene and its resolved solidRestOffset and fluidRestOffset. The ovstage walker also parses a system that only a set references (one outside the scanned subtree, for example).

  • PhysxParticleAnisotropyAPI: physxParticleAnisotropy:particleAnisotropyEnabled is read in the system parse only when the API is listed on the system; true enables the anisotropy post-process stage at creation.

  • PhysxParticleSmoothingAPI: physxParticleSmoothing:particleSmoothingEnabled is read in the system parse only when the API is listed on the system; true enables the smoothing post-process stage at creation.

  • PhysxParticleIsosurfaceAPI: physxParticleIsosurface:isosurfaceEnabled is read in the system parse only when the API is listed on the system; true enables the isosurface post-process stage at creation. The isosurface auto values derive from the system’s resolved fluidRestOffset.

Notes#

  • Offset completion at creation, in this order: particleContactOffset (<= 0 becomes 0.05 / metersPerUnit), fluidRestOffset, restOffset, contactOffset (raised to 1.01 x restOffset when not larger), solidRestOffset, and finally particleContactOffset is raised to 1.01 x max(solidRestOffset, fluidRestOffset) when not larger. Only a negative offset triggers an auto value: an absent offset column reads 0 and stays 0, unlike USD’s -inf fallback.

  • The runtime also reads lockedAxis (bits 0 to 2 lock X, Y, Z; clamped to [0, 7]) and physxParticle:fluidBoundaryDensityScale (absent 0), which the PhysX schema does not declare, and resolves the system’s material binding and collision group; they are not described here. globalSelfCollisionEnabled and nonParticleCollisionEnabled are declared by the schema but never read.

  • A live change re-reads only the changed column and does not repeat the offset completion done at creation.