Fixed code snippet using 3.x name for PhysicsServer2D

The code was originally using Physics2DServer which has been renamed to PhysicsServer2D in 4.x
This commit is contained in:
OgGhostJelly
2023-05-19 10:54:50 +07:00
committed by Max Hilbrunner
parent 3467859fc4
commit 76f753db0e

View File

@@ -56,7 +56,7 @@ Use the following code in 2D:
func _physics_process(delta):
var space_rid = get_world_2d().space
var space_state = Physics2DServer.space_get_direct_state(space_rid)
var space_state = PhysicsServer2D.space_get_direct_state(space_rid)
.. code-tab:: csharp