Python guide and API reference#
Backend registration#
Import the module to load and register the OvPhysX backend. Then select it through the physics manager:
import isaacsim.physics_engines.ovphysx
from isaacsim.physics.manager import PhysicsManager
physics_manager = PhysicsManager.get_instance()
if not physics_manager.switch_physics_engine("ovphysx"):
raise RuntimeError("OvPhysX physics engine is unavailable.")
You do not need to call activate() or shutdown() for normal application use.
- isaacsim.physics_engines.ovphysx.activate() bool#
Activate and register the OvPhysX backend if needed.
- Returns:
True when the native backend reports successful activation.
- isaacsim.physics_engines.ovphysx.get_tensor_device_ordinal() int#
Get the declared tensor-device ordinal.
- Returns:
The ordinal passed to
set_tensor_device_ordinal(), or -1 when none was declared.
- isaacsim.physics_engines.ovphysx.set_suppress_readback(enable: bool) None#
Set the process-wide PhysX readback-suppression option.
- Parameters:
enable – True to suppress CPU readback for the DirectGPU workflow.
- isaacsim.physics_engines.ovphysx.set_tensor_device_ordinal(ordinal: int) None#
Declare the device holding this backend’s tensors.
OvPhysX exposes no query for the device its scene selected, so the caller that configured the tensor device states it here. Every entity view reports this value and re-reads it on each access, so it may be declared after those views exist.
- Parameters:
ordinal – CUDA device ordinal, or -1 for host memory.
- isaacsim.physics_engines.ovphysx.shutdown() None#
Shut down the OvPhysX backend if its bindings were loaded.