Class PhysicsServer3DManager
A singleton for managing PhysicsServer3D implementations.
- Inheritance
-
PhysicsServer3DManager
Remarks
PhysicsServer3DManager is the API for registering PhysicsServer3D implementations and for setting the default implementation.
Note: It is not possible to switch physics servers at runtime. This class is only used on startup at the server initialization level, by Godot itself and possibly by GDExtensions.
Methods
register_server(String, Callable)
Register a PhysicsServer3D implementation by passing a name
and a Callable that returns a PhysicsServer3D object.
void register_server(String name, Callable create_callback)
Parameters
set_default_server(String, int)
Set the default PhysicsServer3D implementation to the one identified by name
, if priority
is greater than the priority of the current default implementation.
void set_default_server(String name, int priority)