public void SetDestination(Vector2 point) { LinearVelocity = GlobalPosition.DirectionTo(point) * Speed; Rotation = GlobalPosition.AngleToPoint(point); LinearDamp = 0; }
public void SetDestination(Vector2 point) { LinearVelocity = GlobalPosition.DirectionTo(point) * Speed; Rotation = GlobalPosition.AngleToPoint(point); LinearDamp = 0; }