PhysxParticleSetAPI#
Turns a PointBased (Points, Mesh, …) or PointInstancer prim into a set of PBD particles simulated by the particle system that physxParticle:particleSystem names. The set is seeded from physxParticle:simulationPoints when present, otherwise from points (positions on a PointInstancer), with velocities from velocities.
Applies to:
PointBased,PointInstancerRead only when listed in
usd-schemas.No builder:
ovphysx.populationandPopulation.hppdo not write this component; the consumer reads it when another population writes it.
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 |
|---|---|---|---|---|---|---|
|
bool8 |
none |
true |
resolved USD value (authored, else raw fallback) |
false diverges |
false: a solid (granular) set. Its phase lacks eParticlePhaseFluid, a particle mass from a density uses the system’s solidRestOffset, and a sampler targeting it samples at 2 x solidRestOffset. USD’s fallback is true (fluid), so write the value. |
|
float32[3] array, POINT |
length |
not written |
The particles are seeded from points (positions on a PointInstancer). On an ovstage Stage every column counts as authored, so the parser always attempts the read; an absent or empty column means no simulation points. A non-empty column whose length differs from the points makes the runtime reject the set. |
Interactions#
PhysxParticleAPI: physxParticle:particleSystem, particleEnabled, selfCollision and particleGroup are read here without checking that PhysxParticleAPI is listed.PhysxParticleSystem: The set copies the scene and the resolved solidRestOffset and fluidRestOffset of the system that physxParticle:particleSystem names.PhysicsMassAPI: physics:mass and physics:density are read on the set whenever present, without checking PhysicsMassAPI. A mass > 0 is split evenly over the points; otherwise each particle weighs 8 x restOffset^3 x density (fluid or solid rest offset of the system, volume floored at FLT_EPSILON), with the density from physics:density, else the system’s PBD material, else the units-scaled default density.Points: Geometry: points and velocities on a PointBased prim, positions and velocities on a PointInstancer.PhysxDiffuseParticlesAPI: Diffuse particle settings are read in this API’s parse when the prim also lists PhysxDiffuseParticlesAPI.
Notes#
The runtime also reads physxParticle:maxParticles (not declared by the PhysX schema; absent means the point count); it is not described here.
The runtime rejects a set with the warning ‘PhysxSchemaPhysxParticleSetAPI parsing failed’ when velocities or physxParticle:simulationPoints is non-empty with a length different from the points, or physxParticle:maxParticles is smaller than the point count.