PhysxParticleSamplingAPI#
Poisson-samples a Mesh into the particle set that its physxParticleSampling:particles relationship names. The runtime dispatches the sampling to the cooking service at load, and only before the first simulation step; a sampler added later is ignored with a warning.
Applies to:
MeshRead only when listed in
usd-schemas.No builder:
ovphysx.populationandPopulation.hppdo not write this component; the consumer reads it when another population writes it.
Interactions#
Points: The target must be a Points or PointInstancer prim that lists PhysxParticleSetAPI; otherwise the runtime warns that the sampler does not point to a valid particle prim and does not sample.
Notes#
Only a Mesh is sampled: the ovstage dispatch and the parser check the Mesh type as well as the API.
The runtime reads physxParticleSampling:samplingDistance, physxParticleSampling:maxSamples, physxParticleSampling:volume and the physxParticleSampling:particles relationship, plus the target set’s physxParticle:fluid and its system’s rest offsets for the point width, and uses them for the sampling at load. These columns are not described yet.