Many prominent engines utilize IK (Inverse Kinematics) in their games to make dynamic animations and more realistic humanoid behavior. For my game, I’m currently trying to make some simple dynamic gun holding animations using IK. https://gyazo.com/981c5b1d75c2d1edd99329655872f13c
This is what I have currently, I haven’t found a way to implement it into my motor manipulation or if this method is even the proper way I should be doing it.
My goal is to reach this:
At this point it would be very simple and just require the movement of the target points. Would you be willing to donate some tech tips @Adv3rtize? All I require is the arms part.
If code of the current method I’m using is required, I will happily provide it, though I don’t believe it will work for humanoid implementation.
Doesn’t the Roblox Animation plugin have IK built in now? You might be able to find it’s codebase and see how they’re doing it. Not sure if they’re doing some kind of trickery to make it work or if it’s a straight Roblox Lua implementation.
For foot planting I suggest raycasting to find endpoints for the legs when standing. If the player is moving around, you can either disable the IK or set up an animation cycle for the endpoints based on which direction the player is moving relative to where they are facing.