Add animations to the blendspace by dragging and dropping them from the content browser.
This was the biggest challenge when making the blendspaces as I had never looked deeply at how triangluation works before.
I used Bowyer Watson’s Algorithm of computing Delauney Triangulation to create the triangles from the points.
I chose to use this algorithm because of it’s ease of implementation.
To make animations of different speeds and length blendable, the speed of the animations need to be altered depending on where we are sampling.
This is achieved by first lerping the duration of the animations appropriately. Then finding what fraction is needed to translate the animations’ durations to the lerped duration.
The blendspaces can be added as states in the Animation State Machine. Plugging the parameters into the position values of the blendspace.