TheTermos / mobkit

Entity API for Minetest
MIT License
26 stars 12 forks source link

Add frame_blend option to animations #29

Closed ElCeejo closed 3 years ago

ElCeejo commented 3 years ago

This PR adds the ability for frame blending with mobkits animate function. This is optional and will default to 0 if not used.

TheTermos commented 3 years ago

Ok let me test it out.

TheTermos commented 3 years ago

Seems ok.

I don't remember now, but I'm pretty sure I must have intentionally excluded this parameter as useless or buggy. Can you provide some use cases for it?

ElCeejo commented 3 years ago

With some models it can break rotations but that's why I have it set to 0 by default, but as long as the model is parented fully there shouldn't be any issues. If you have a sleep animation this will allow for a smooth transition to the animation without needing to do a dedicated transition animation, also transitions between any other animations will look a lot less jarring.

TheTermos commented 3 years ago

I think it's ok to merge, thanks!