NewtonSceneAPI (fallbacks read by the PhysX parser)#
Newton scene settings the PhysX parser reads as fallbacks on every PhysicsScene: the step rate when physxScene:timeStepsPerSecond is absent, and a switch that turns gravity off.
Applies to:
PhysicsSceneNo
usd-schemasgate: the consumer reads these columns whenever they exist on the prim, applied or not. Listing the API is still what the producer does and what the builders write.
What USD population writes#
Published like any applied API when the Newton schema is registered for population; without the registration its attributes are lost (see the ovphysx Newton schema notes).
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 |
|---|---|---|---|---|---|---|
|
int32 |
1/s |
1000 |
resolved USD value (authored, else raw fallback) |
60 diverges |
The scene keeps physxScene:timeStepsPerSecond, else 60. Consulted only when physxScene:timeStepsPerSecond is absent; values are clamped to [1, UINT_MAX]. |
|
bool8 |
none |
true |
resolved USD value (authored, else raw fallback) |
true |
Gravity as configured. A present false zeroes the gravity magnitude, whatever physics:gravityMagnitude says. |
Notes#
newton:gravityEnabled (NewtonSceneAPI family, read on this prim by attribute name, no schema gate): when the column is present and false, physics:gravityMagnitude is forced to 0. Unconditional: an authored physics:gravityMagnitude does not suppress it, and on ovstage presence of the column is the whole gate because every column reads as authored. Absent: gravity applies.
newton:timeStepsPerSecond: fallback for physxScene:timeStepsPerSecond, applied only when the PhysX column is absent or out of range (an in-range PhysX value wins). Clamped to [1, UINT_MAX]. On a producer-populated stage with PhysxSceneAPI applied the published 60 counts as authored, so the fallback is unreachable there.
The parser reads these columns without checking that NewtonSceneAPI is listed in usd-schemas. The compiled cache reads them but does not support the API: a prim that lists NewtonSceneAPI makes the cache bypass.