ok so this should be the way to go
This commit is contained in:
@@ -19,7 +19,7 @@ public partial class CFlyingMovement : Node3D, IMoveable
|
||||
_randomDirection = new Vector3(GD.RandRange(-1, 1), 1, GD.RandRange(-1, 1)).Normalized();
|
||||
}
|
||||
|
||||
public new Vector3 ComputeVelocity(MovementInputs inputs)
|
||||
public Vector3 ComputeVelocity(MovementInputs inputs)
|
||||
{
|
||||
var velocity = inputs.Velocity;
|
||||
var spaceState = GetWorld3D().DirectSpaceState;
|
||||
|
||||
@@ -11,7 +11,7 @@ public partial class CGroundedMovement : Node3D, IMoveable
|
||||
public RayCast3D WallInFrontRayCast { get; set; }
|
||||
|
||||
|
||||
public new Vector3 ComputeVelocity(MovementInputs inputs)
|
||||
public Vector3 ComputeVelocity(MovementInputs inputs)
|
||||
{
|
||||
var velocity = inputs.Velocity;
|
||||
var target = inputs.TargetLocation;
|
||||
|
||||
Reference in New Issue
Block a user