smix8 / GodotAnimationRetargeting

Animation Retargeting module for Godot Game Engine
MIT License
129 stars 9 forks source link

Add scale multiplicator property to up and down scale skeletons bone positions #5

Closed smix8 closed 3 years ago

smix8 commented 3 years ago

The retargeting tool has no way to notice scaling that is not part of the skeleton bones.

This means if someone scales a parent spatial node or the skeleton node the retargeting tool will apply position offsets calculated with the bone rest pose at the original scale and not the final scale seen in the editor.

Changing scale of skeletons is something that you should avoid in general (works really bad for physics bones) but sometimes it can't be avoided or you just want to use some scale broken internet resource for a quick prototyp.

The idea is to add a property field for a scale multiplicator so the retargeting tool can up or downscale the position values accordingly.

smix8 commented 3 years ago

Working on rescaling skeleton animations and root motion support for the retargeting tool. Animation Retargeting Devlog #7

smix8 commented 3 years ago

Added by commit 460b1bb0ad9715724258438f09d2869f7a4a4402 for Godot_3.x and commit 8969555c780c33900ba095a4bcc5e8bf905577e7 for Godot_3.x_gdscript.

Godot 4.x updates will come later, some additional quirks to solve.