Merge pull request #9221 from Mudkipze/patch-2

Update PhysicsServer2D naming for C# in ray-casting.rst
This commit is contained in:
A Thousand Ships
2024-04-13 11:52:00 +02:00
committed by GitHub
+1 -1
View File
@@ -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: