So I recently watched this absolutely fantastic animation talk by David Rosen (Programmer and Animator on overgrowth as well as one of the creators of the Humble Bundle). My friends follow Overgrowth almost religiously so I’ve heard a lot about it and know that he’s done a lot of cool stuff with it but after watching this I really want to try out the same thing. I’ve decided to start from the beginning so I’ve been attempting to get my first person character to lean slightly depending on what direction he’s going. I wouldn’t be asking for help if I wasn’t at my wit’s end with this D: I was thinking of posting this in Content Creation since it’s technically animation but since I’m mainly planning on using the AnimBlueprint to manipulate bones and interpolate between poses I thought it would be better answered here.
At the moment what I’ve got is this Animation Blueprint:
At every tick of the Animation being updated it gets the pawn that’s using it, grabs the velocity and rotation, turns the velocity into the “Speed” float, makes it so the velocity number is local to the mesh rather than the world and then sends that off as “rotate”. Then in the AnimGraph it uses those two to rotate the root bone making the player lean. In theory it works well-ish but in practice it has some problems with it. Moving left and right causes you to lean backwards and forwards and moving forwards and backwards causes you to lean left and right. I’ve attempted to remedy this by - or +90 degrees to the rotation but it causes only one of the directions to work. I’ve also tried using the other node you see in the AnimGraph but I can’t get it to do anything. Any help at all would be greatly appreciated, I really have no idea what to do D: