[Legacy] GeckoLib Fabric

[Legacy] GeckoLib Fabric

3M Downloads

Geckolib 4.5 fails to resolve some math expressions that older Geckolib versions could resolve

NordAct opened this issue ยท 1 comments

commented

If you try to add some "offset" for either sin or cos functions, this will result in Geckolib not resolving those functions correctly (or preventing querys from working correctly, idk what is exactly happening here). Like:
25+math.sin(query.anim_time*360/4-90)*3 - being passed as angle, this will result in bone being constantly angled at 25 degrees on axis where this expression was put and it will not change over time despite the query. Similar result also happens if you try to add value rather than substract, or use such expression for changing bone position or scaling
25+math.sin(query.anim_time*360/4)*3 - this will work and change over time just fine

Some videos with demonstration of the bug:

Exact same model, exact same animation files. In Blockbench animation matches the one shown in video with Geckolib 4.4.4

Link to repos of the mod with links relevant files:

As of logs: there's no errors or warnings regarding this.

commented

Fixed in 4.5.2