IK Solving Plugin

This forum is currently in read-only mode.
From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • I'm pretty sure somebody asked for this before(Quazi, I think), and so here it is. I was needing something to test out my crappy C++ skills on and this seemed easy enough.

    Anyways, what this does is does all of the fancy math for you when solving a triangle to use for IK applications. It consists of only one action, which is "Solve IK". In the action, you specify two sprites to act as bones and one to act as a control point. The bones will automatically be rotated and positioned accordingly(the second bone will even position its self to the end of the first bone automatically). Just make sure that the hotspots on your bones are on the far left of the sprite or things might work funky. Also, it's approximately 30% faster than doing it manually.

    And, without further ado, here it is:

    IK Solver Plugin

    So, be sure to leave feedback. If you want some more control over a specific aspect or want something added, don't forget to let me know.

  • Awesome! What is the "Test Value" property, though?

  • That's really cool

    Any way you could make it so it can solve counter-clockwise as well? Or whatever the terminology is. You know... the other, uh, direction or whatever. I tried making a crab walk, but the knees all bend the same way.

  • Nice!

    One thing I notice, if the control sprite overlaps the other two, they disappear.

  • Thanks, guys.

    Mipey - The test value is something I forgot to take out.

    deadeye - I whipped up a new version real quick. It adds a new action to rotate the bones the opposite way: IK Solving Plugin 1.1

    newt - I haven't noticed anything like that. Could you put up a CAP? Unless, of course, you're just using the example one I put together.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I cant seem to reproduce it now, I will say I had the control set to move to mouse x,y.

    Edit: Also a suggestion, it would be nice if the actions showed on the editor what sprites were connected.

  • Also a suggestion, it would be nice if the actions showed on the editor what sprites were connected.

    I'm not exactly sure how that's done. It's a miracle I was able to piece together a plugin in the first place.

  • Please reupload 1.1 on another server:

    [quote:a3st23f0]Guys, our host deleted all of our user-uploaded files. (People logged in while uploading). I have emailed them about this and I hope to get these files back up ASAP.

    Even making a new account to upload wont work right now, my host has me entirely locked out of the folder. Ive emailed them but they havent replied back yet.

    Posted by ChIkEn on March 13, 2009, 1:10 pm

  • Bleh, I forgot about that:

    IK Solver 1.1

  • Version 1.2 coming through! I found out how to show which objects are connected in the editor(thanks to the RTS source), so that's in there now.

    Also, instead of the second bone merely being placed at the very end of the first one, there's now a reletive distance value that you can specify. 0 is default and will keep the bone at the very end, negative values will have it closer to the pivot point, and positive values will place it farther out. Very helpful for making more seamless joints.

    IK Solver 1.2

    NOTE: If you have any CAPs using this, the IK stuff won't work anymore. You'll have to edit any actions using the plugin to make them work again. The reason for this is that the control point is now the FOURTH parameter since the distance parameter is now behind it.

  • Looking good, one minor thing, I think it should be Distance (Relative).

  • There's no included cap though. I made some experiments on IK solver, but I think a *cap could explain it's features better, nah?

  • this thing rocks

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)