Question:
The transition between animation and Blend Space 1D doesn’t work using a state machine.
Status:
State machine status:
Start → [Idle (Animation)] → End
[Idle] → [Move (Blend Space 1D)] → End
Idle → End: is_Idleing
Idle → Move: is_Moveing
Move → End: is_Moving
What I’ve tried and confirmed:
I added a Sprit motion to Idle and tested whether the animation would work.
I checked the conditions.
I confirmed whether I could move to Move using Travel() as shown in the code.
Two Walk and Sprit motions have been set in Blend Space.
I also set an Idle animation in Idle.
Transitions have also been set.
I can move to Idle.
Controller.cs:
Inherits CharacterBody3D
public override void _Ready()
{
animationTree.Active = true;
stateMachine = animationTree.Get("parameters/playback").As<AnimationNodeStateMachinePlayback>();
//stateMachine.Travel("Idle");
//stateMachine.Travel("Move");
animationTree.Set("parameters/is_Moving", true);
animationTree.Set("parameters/is_Idleing", false);
animationTree.Set("parameters/Move/blend_position",1.0f);
}