fixed cue issue and setup proper waves
Some checks failed
Create tag and build when new code gets to main / BumpTag (push) Successful in 26s
Create tag and build when new code gets to main / Export (push) Has been cancelled

This commit is contained in:
2026-05-16 20:56:20 +02:00
parent 2103832e46
commit dc81796d52
6 changed files with 322 additions and 26 deletions

View File

@@ -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)
{