fixed cue issue and setup proper waves
This commit is contained in:
@@ -26,7 +26,9 @@ public partial class CFlyingMovement : Node3D, IMoveable
|
||||
var velocity = inputs.Velocity;
|
||||
var spaceState = GetWorld3D().DirectSpaceState;
|
||||
var target = inputs.TargetLocation;
|
||||
var direction = (target - GlobalPosition).Normalized();
|
||||
var direction = GlobalPosition.DirectionTo(target);
|
||||
velocity = velocity.Lerp(direction * RMovement.Speed, (float) inputs.Delta * RMovement.Acceleration);
|
||||
return velocity;
|
||||
// Check if we have a direct line of sight to the player
|
||||
if (!_movingToDesiredHeight)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user