2022-09-06 21:35:33 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-06 16:08:05 +08:00
<class name= "PhysicsServer3DManager" inherits= "Object" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2022-09-06 21:35:33 +08:00
<brief_description >
2023-04-29 04:59:03 +08:00
A singleton for managing [PhysicsServer3D] implementations.
2022-09-06 21:35:33 +08:00
</brief_description>
<description >
2023-04-29 04:59:03 +08:00
[PhysicsServer3DManager] is the API for registering [PhysicsServer3D] implementations and for setting the default implementation.
2022-09-06 21:35:33 +08:00
[b]Note:[/b] 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.
</description>
<tutorials >
</tutorials>
<methods >
<method name= "register_server" >
<return type= "void" />
<param index= "0" name= "name" type= "String" />
<param index= "1" name= "create_callback" type= "Callable" />
<description >
2023-01-18 04:34:10 +08:00
Register a [PhysicsServer3D] implementation by passing a [param name] and a [Callable] that returns a [PhysicsServer3D] object.
2022-09-06 21:35:33 +08:00
</description>
</method>
<method name= "set_default_server" >
<return type= "void" />
<param index= "0" name= "name" type= "String" />
<param index= "1" name= "priority" type= "int" />
<description >
Set the default [PhysicsServer3D] implementation to the one identified by [param name], if [param priority] is greater than the priority of the current default implementation.
</description>
</method>
</methods>
</class>