I have a heavy nostalgia for 16-bit arcade game bosses with articulated necks and joints, and wanted to include a monster in my project that has a similar type of articulation. In case anyone else finds it useful, here are some FABRIK and forward kinematics solvers written in ZScript!
These allow you to have multiple actors follow a "lead" actor like they're all on a string, ideal for things like tails or dragging chains, or have two points pinned in space with realistic articulation of points between them as they move around, ideal for describing the joints of an arm, neck, or any connection between two points
The package should be loadable as a mod if you want to test it out; just uncomment the commented-out lines in 'Include.zs', load it up in GZDoom, and summon a Zombieman (for the FABRIK demo) or a Cacodemon (for the forward kinematics demo)
Have fun! https://github.com/DollgirlMonster/GZKinematics
Video demonstration: https://youtu.be/jWsNmZCUgPQ
[ZScript] GZKinematics - Forward Kinematics & FABRIK
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.
Got a cool project idea but nothing else? Put it in the project ideas thread instead!
Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.
Please read the full rules for more details.
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.
Got a cool project idea but nothing else? Put it in the project ideas thread instead!
Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.
Please read the full rules for more details.
Re: [ZScript] GZKinematics - Forward Kinematics & FABRIK
This is super cool. I've tried doing FABRIK in Space Engineers but I wasn't smart enough. Its cool to see it implemented in GZD.
Re: [ZScript] GZKinematics - Forward Kinematics & FABRIK
Cool stuff. LilWhiteMouse made several mods with multi-part actors that behaved in a similar way, but that was a long time ago - pre ZScipt - and so most of the heavy lifting was done with ACS. I don't recall it being done in ZScript by anyone, and this seems like an approachable resource for anyone who wants to adapt it to their own needs.