Class PhysicsServer2DManager
- Namespace
- Godot
- Assembly
- GodotSharp.dll
PhysicsServer2DManager is the API for registering PhysicsServer2D 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.
public static class PhysicsServer2DManager
- Inheritance
-
PhysicsServer2DManager
- Inherited Members
Properties
Singleton
public static PhysicsServer2DManagerInstance Singleton { get; }
Property Value
Methods
RegisterServer(string, Callable)
Register a PhysicsServer2D implementation by passing a name
and a Callable that returns a PhysicsServer2D object.
public static void RegisterServer(string name, Callable createCallback)
Parameters
SetDefaultServer(string, int)
Set the default PhysicsServer2D implementation to the one identified by name
, if priority
is greater than the priority of the current default implementation.
public static void SetDefaultServer(string name, int priority)