PointInstancer (rigid-body instancing)#

Instances rigid-body prototypes. The runtime’s rigid point-instancer loader reads the prototype targets and the per-instance arrays, parses each used prototype subtree once and stamps one body per active instance. It runs only when some prim on the Stage applies PhysicsRigidBodyAPI or PhysicsCollisionAPI.

What USD population writes#

The producer gives a PointInstancer a row when it reaches a physics prototype (see the prim block) and publishes its schema attributes at their resolved values. Population also preserves the authored prototype targets in order as prototypes:usd-targets, which the consumer prefers over the prototypes relationship.

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

prototypes

uint64 array, RELATIONSHIP_PATH_ID

not written

No targets: every protoIndices entry is out of range and no instance is created. Consulted only when this prim has no prototypes:usd-targets row.

prototypes:usd-targets

uint64 array, RELATIONSHIP_PATH_ID

the authored prototypes targets in authored order

The prototypes relationship is read instead. A present but empty row is authoritative and does not fall back.

protoIndices

int32 array

none

not written

Warns that the indices array is not valid and creates no instance.

positions

float32[3] array, POINT

length

not written

Warns that the positions array is not valid; every instance is placed at the instancer origin. A length different from protoIndices warns the same way.

orientations

float16[4] array, QUATERNION

none

not written

Identity orientation per instance. A length different from protoIndices warns.

velocities

float32[3] array, VECTOR

length/s

not written

Zero initial linear velocity per instance.

angularVelocities

float32[3] array, VECTOR

deg/s

not written

Zero initial angular velocity per instance.

scales

float32[3] array

none

not written

Unit scale, and the instances share the prototype’s shapes. With scales every instance gets its own scaled shapes.

ids

int64 array

none

not written

usd-metadata:inactiveIds names instances by position.

usd-metadata:inactiveIds

int64 array

none

the inactiveIds prim metadata

Every instance is active.

Interactions#

  • PhysicsRigidBodyAPI: Prototype subtrees are parsed as rigid bodies and colliders; a prototype that is not a body creates nothing per instance.

  • PhysxPhysicsJointInstancer: A joint instancer body target that is a PointInstancer resolves its body index through this prim’s protoIndices and prototypes.

Notes#

  • With PhysxParticleSetAPI applied, the particle-set parse reads positions and velocities as the particle positions and velocities (see PhysxParticleSetAPI); the descriptions here are the rigid-body path’s.