Browse Source

Merge pull request #9221 from Mudkipze/patch-2

Update PhysicsServer2D naming for C# in ray-casting.rst
A Thousand Ships 1 year ago
parent
commit
a6ec757216
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tutorials/physics/ray-casting.rst

+ 1 - 1
tutorials/physics/ray-casting.rst

@@ -63,7 +63,7 @@ Use the following code in 2D:
     public override void _PhysicsProcess(double delta)
     public override void _PhysicsProcess(double delta)
     {
     {
         var spaceRid = GetWorld2D().Space;
         var spaceRid = GetWorld2D().Space;
-        var spaceState = Physics2DServer.SpaceGetDirectState(spaceRid);
+        var spaceState = PhysicsServer2D.SpaceGetDirectState(spaceRid);
     }
     }
 
 
 Or more directly:
 Or more directly: