Work in progress
Godot documentation is being updated to reflect the latest changes in version
4.0
. Some documentation pages may
still state outdated information. This banner will tell you if you're reading one of such pages.
The contents of this page are up to date. If you can still find outdated information, please open an issue.
PhysicsServer3DManager¶
Inherits: Object
Manager for 3D physics server implementations.
Description¶
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¶
void |
register_server ( String name, Callable create_callback ) |
void |
set_default_server ( String name, int priority ) |
Method Descriptions¶
void register_server ( String name, Callable create_callback )
Register a PhysicsServer3D implementation by passing a name
and a Callable that returns a PhysicsServer3D object.
void set_default_server ( String name, int priority )
Set the default PhysicsServer3D implementation to the one identified by name
, if priority
is greater than the priority of the current default implementation.