The existing UE4 version of FABRIK doesn’t support chains or constraints so I created a port of CALIKO. I was originally planning to create new animation nodes and set it up as a plugin. I’ll probably use another type of system for IK so I don’t think I’ll continue working on this. It might be useful to someone so I thought I’d upload the source code.
Create a new project called “IK” and add the source code. Don’t forget to include the Log category in IK.cpp / IK.h. Add a FabrikDemoActor to the scene. Add a target object e.g cube scale 5%. In the AFabrikDemoActor settings set the “Target Actor” property to the cube. Add a FabrikDebug component to the FabrikDemoActor (draws lines). Use the FabrikDemoActor “Demo Type” setting to try different demos. The debug lines appear better in wireframe mode. This only supports 3d chains and is missing most of the validation in the setters (just using properties).
Issues:
[3D] Solutions involving local hinges may exhibit discontinuities · Issue #2 · FedUni/caliko · GitHub [3D] Solutions involving local hinges may exhibit discontinuities. Sounds like it can be fixed using quaternions.
I’ve only roughly ported it and checked if the demos work so it might have some porting bugs.