MCPcopy Create free account
hub / github.com/RoboVerseOrg/RoboVerse / disable_gravity

Function disable_gravity

scripts/conversion/test_usd.py:122–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120
121
122def 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
129def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected