Hi, all!
I was creating my animation (blend) tree implementation, I did a few nodes (speed, blend2, statemachine, etc.)
and got to a stage where I need to find when sequence ends (or loop phase ends) to trigger next stage of state machine. Would be nice to look at some code which implements this.
Animation tree implementation
-
slapin
- Bronze Sponsor

- Posts: 250
- Joined: Fri May 23, 2025 5:04 pm
- x 16
Animation tree implementation
-
slapin
- Bronze Sponsor

- Posts: 250
- Joined: Fri May 23, 2025 5:04 pm
- x 16
Re: Animation tree implementation
As I did write I got an idea...
For each node which manipulates speed, we return child's length / speed.
For each node which blends animations we return the largest animation's length.
For state machine we return current state's length. For each node which blends-in animations
on conditions we return current configuration's length. That would be perfect.