diff --git a/tutorials/physics/ray-casting.rst b/tutorials/physics/ray-casting.rst index 43908e8f6..5d6b240b2 100644 --- a/tutorials/physics/ray-casting.rst +++ b/tutorials/physics/ray-casting.rst @@ -63,7 +63,7 @@ Use the following code in 2D: public override void _PhysicsProcess(double delta) { var spaceRid = GetWorld2D().Space; - var spaceState = Physics2DServer.SpaceGetDirectState(spaceRid); + var spaceState = PhysicsServer2D.SpaceGetDirectState(spaceRid); } Or more directly: