Skip to content

Commit 5114103

Browse files
authored
Update PhysicsServer2D naming for C# in ray-casting.rst
Current documentation refers to "Physics2DServer" exclusively in C# code snippet, when the actual name should be PhysicsServer2D.
1 parent 774c3cd commit 5114103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/physics/ray-casting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Use the following code in 2D:
6363
public override void _PhysicsProcess(double delta)
6464
{
6565
var spaceRid = GetWorld2D().Space;
66-
var spaceState = Physics2DServer.SpaceGetDirectState(spaceRid);
66+
var spaceState = PhysicsServer2D.SpaceGetDirectState(spaceRid);
6767
}
6868

6969
Or more directly:

0 commit comments

Comments
 (0)