Hi!
I’m building a kart game using Chaos Physics, so far it has been a journey but I’ve been able to overcome most of the issues so far, and keeping a steady pass.
Ok, so far I have a main Blueprint for my Kart that handles the movement and all the inputs from the Player. Inside that BP I have a Skeletal Mesh of the pilot. For him, I have a static pose that acts as my idle pose, and from that I have an animation to steer right and another for steering left. Both steering animations starts from the base pose, and the animations are a combinations of animating bones and using morph targets.
Inside the Kart BP, I already have a variable for the steering angle that is updating each tick, getting it directly from the front wheels of the Kart instead of grabbing it from the Controller Input, as in some conditions there is some automatic countersteering.
Now I’m building the Animation Blueprint for my pilot: in the Event Graph, at Event Blueprint Initialize Animation, I’m doing a cast on my Kart BP and promoting it to a variable, so at Update Animation I can use it to fetch the steering angle from the Kart BP and setting it as a variable. (I think this is the most clean solution, I’ve also tried fiddling with BP interfaces in order to pass this variable, maybe that would be better for reasons yet unknown to me?)
Now the question is this: I’d like to be able to use this steering angle variable to control the interpolation between these 2 animations, so that at zero steering value my pilot stays in idle position, with max steering in either direction we reach the last keyframe of the animation and hold it, and any value in between gets mapped to the interpolation of the animation, so that it can go back and forth in the timeline animation depending from the steering angle.
I’ve already set the Idle position into a state machine and I was trying to implement the steering, but I can’t find some resources to help me do it, all I can find are topics about Blend Spaces, but I think those are for blending between looping animations?
Anyway, I hope I made myself clear, thank you in advance for taking your time on this!