Skip to content

Commit a6ec757

Browse files
Merge pull request #9221 from Mudkipze/patch-2
Update PhysicsServer2D naming for C# in ray-casting.rst
2 parents 774c3cd + 5114103 commit a6ec757

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)