PhysxForceAPI#
Applies a constant force and torque to the rigid body that owns the prim, at the body’s centre of mass or at this Xformable’s position. Read by the runtime’s force loader when the API is listed.
Applies to:
XformableRead only when listed in
usd-schemas.
What USD population writes#
Every declared attribute of the applied API is published at its resolved value.
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: the force is created disabled. USD’s fallback is true, so write the value. |
|
bool8 |
none |
false |
resolved USD value (authored, else raw fallback) |
false |
false: force and torque are in the prim’s local frame. |
|
float32[3], VECTOR |
mode force: mass*length/s^2; mode acceleration: length/s^2 |
(0, 0, 0) |
resolved USD value (authored, else raw fallback) |
(0, 0, 0) |
Zero force. |
|
float32[3], VECTOR |
mode force: mass*length^2/s^2; mode acceleration: 1/s^2 |
(0, 0, 0) |
resolved USD value (authored, else raw fallback) |
the physxForce:force value diverges |
The torque takes the force vector: the loader reuses one variable for both reads and keeps its value when the torque read fails (preserved from the USD loader). Write the torque, (0, 0, 0) included. |
|
uint64, TOKEN_ID |
none |
acceleration |
resolved USD value (authored, else raw fallback) |
force diverges |
force mode: only the token acceleration selects acceleration mode, and an absent column reads as no token. USD’s fallback is acceleration, so write the value. |
Interactions#
PhysicsRigidBodyAPI: The force acts on the nearest rigid body or articulation link at or above the prim; its scene is that body’s physics:simulationOwner. Without one the force has no body.prim: The application point is this prim’s world position; the local rotation relative to the body comes from both world transforms.