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)
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_3yq0a")
|
||||
Speed = 3.0
|
||||
Acceleration = 5.0
|
||||
TargetHeight = 10.0
|
||||
Speed = 6.0
|
||||
Acceleration = 8.0
|
||||
TargetHeight = 8.0
|
||||
metadata/_custom_type_script = "uid://dtpxijlnb2c5"
|
||||
|
||||
Reference in New Issue
Block a user