mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
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.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user