mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Update 2d_movement.rst
Fixing typo in C# code sample
This commit is contained in:
@@ -262,7 +262,7 @@ on the screen will cause the player to move to the target location.
|
||||
public override void _PhysicsProcess(double delta)
|
||||
{
|
||||
Velocity = Position.DirectionTo(_target) * Speed;
|
||||
// LookAt(target);
|
||||
// LookAt(_target);
|
||||
if (Position.DistanceTo(_target) > 10)
|
||||
{
|
||||
MoveAndSlide();
|
||||
|
||||
Reference in New Issue
Block a user