()
| 120 | |
| 121 | |
| 122 | def disable_gravity(): |
| 123 | stage = omni.usd.get_context().get_stage() |
| 124 | prim = stage.GetPrimAtPath("/World/Objects/TestObject") |
| 125 | physxAPI = PhysxSchema.PhysxRigidBodyAPI.Apply(prim) |
| 126 | physxAPI.CreateDisableGravityAttr(True) |
| 127 | |
| 128 | |
| 129 | def main(): |