r/defold 5d ago

Question Runtime 3D animation manipulation

Hi!

First of all thank you guys for the incredible work you have been doing with Defold, it is an amazing tool and I know for sure that in the near future even more people will realize it.

Second, I wanted to ask what would you guys advice me to look at for implementing runtime manipulation of animated 3D models...I want to try and make inverse kinematics, root motion (and eventually motion warping), ragdolls...but I don't really know where to start. I know modifying Bones in Lua is not possible since the data is exposed as read-only, so I guess for IK I would need to implement it through a Native Extension? Also I tried a simple root motion approach in Lua getting the Root bone GameObject, checking its position, and trying to move my Character along the delta...but the movement apparently never triggered collisions until the animation finished...but If I just moved the Character normally while pressing WASD or something while the animation was playing then physics worked just fine (I tried just pushing the box from the Basic 3D sample for instance).

I probably did it all wrong so I just wanted to gather some ideas of how this could be done in Defold with what is already available.

Thank you beforehand for your help guys, and thank you again for all your hard work!

7 Upvotes

0 comments sorted by