PhysicsServer2DManager

Inherits: Object

A singleton for managing PhysicsServer2D implementations.

Description

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.

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 PhysicsServer2D implementation by passing a name and a Callable that returns a PhysicsServer2D object.


void set_default_server ( String name, int priority )

Set the default PhysicsServer2D implementation to the one identified by name, if priority is greater than the priority of the current default implementation.

Previous Next


© Copyright 2014-present Juan Linietsky, Ariel Manzur and the Godot community (CC BY 3.0). Revision 53e837c6.

Built with Sphinx using a theme provided by Read the Docs.