mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Replaced deprecated "get" cs func in fps tutorial
In the 3D fps tutorial, changed the camera global transform function to use direct property setting instead of getter since the getter is deprecated in 3.2.1.
This commit is contained in:
@@ -290,7 +290,7 @@ Add the following code to ``Player.gd``:
|
||||
// -------------------------------------------------------------------
|
||||
// Walking
|
||||
_dir = new Vector3();
|
||||
Transform camXform = _camera.GetGlobalTransform();
|
||||
Transform camXform = _camera.GlobalTransform;
|
||||
|
||||
Vector2 inputMovementVector = new Vector2();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user