get_physics_state
Retrieve physics state for a prim to debug rigid body status, velocities, kinematic flag, collision info, and mass. Use to identify why objects fall through ground, don't move, or grasping fails.
Instructions
Diagnostic tool: get physics state for a prim.
Returns rigid body status, velocities, kinematic flag, and collision info.
mass is included only when the prim carries a UsdPhysics MassAPI —
objects created by create_object do not, and take their mass from the
collider's density.
Velocity units: linear_velocity in m/s, angular_velocity in rad/s.
Velocities are only non-zero once the simulation has advanced — step the
simulation (or play) before reading them.
Call this when:
Objects fall through the ground (check collision enabled)
Objects don't move when expected (check is_kinematic, mass)
Grasping fails (check collision on gripper fingers and target object)
Args: prim_path: USD path to the prim to inspect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prim_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |