Bodyanim 🔗
Player bodies follow their walk direction, and player heads follow their look direction.
Based on Lone_Wolf's Headanim
Player bodies follow their walk direction, and player heads follow their look direction. Based on Lone_Wolf's headanim
Work in Progress Player customization / Skins
Nice
Honestly this is a great start and an awesome mod, but fairly limited in what it offers. It does what it says, it points the head in the look direction and the body in the walking direction. Something I would very much like to see in the future is possibly a sneaking animation, and the idle animation when you are not walking and the head is diagonal is pretty weird, but other than that it's pretty awesome!
Nice improvement
I don't play in 3rd person view, but as I often look "left and right" while walking, I find it useful to let other players know where I'm looking - that's why I was using Lone_wolf's headanim. It did less than other mods but was simpler.
I half-agree with the other comment, if you can find a cheap way to have the body slowly align with the head (or is it the opposite ?) when not walking, that would be great.
On the technical side, I'd like to see core.get_player_control_bits() for a little extra performance (it's faster to return a number than to build and return a table, even if it's the engine that does it). You'll have to use the bit.band() function to test each bit.
Also a little nitpicking: the indentations in your code are weird: they use a mix of spaces and tabs - I figured out that 1 tab=2 spaces. Configuring your editor to only use spaces for indention would readers (more a tips for other projects - people rarely look into mod code).