apply_force
Push a rigid body in PhysX so its mass affects motion; applies an impulse or one-step force at a world-space point while simulation is playing or paused.
Instructions
Push a rigid body through PhysX, so its mass counts. The simulation must be playing or paused. Refused for a disabled or kinematic body, and for an articulation's link, such as a robot's, which PhysX's push doesn't reach yet (#58).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | Yes | [fx, fy, fz]: an impulse in N s, or a force in N for one physics step | |
| impulse | No | True for an impulse in N s, False for a force in N for one physics step. For a sustained push, give an impulse of force times seconds | |
| position | No | World-space point to push at; the body's centre of mass when omitted | |
| prim_path | Yes | The rigid body's prim path |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |