Stencyl 3.4.0 is now out. Get it now!

Joints Extension

captaincomic

  • *
  • Posts: 6109
The link for the box 2d manual in the OP seems to be broken.
Thanks, I updated the link.

Hi,

I'm having difficulty as there doesnt seem to be any documentation/examples? Can anybody give me an example of a puley joint or a revolute joint between two actors?

Thank you!
You can find a demo on StencylForge called "Joints Sandbox". Just take a look at the scene events.

DeckBlack

  • Posts: 120
How to do like springs between the wheels and body of car?

Irock

  • *
  • Posts: 2835
Dropbox intentionally borked html links recently, so your demo link doesn't work anymore. I made an educated guess and found the swf though: https://dl.dropboxusercontent.com/u/4236876/stencyl/joints/sandbox/Game.swf

squeeb

  • Posts: 1098
how can you connect  two actors with a prismatic joint?

CmdrWhitey13

  • Posts: 454
Thanks to Justin, there is a file for this extension. The following link should download the zip file.

https://cdn.discordapp.com/attachments/209323692205932544/292928960155877378/joints.zip

If link doesnt work, the zip file is being attached as well to this location.

twotimingpete

  • *
  • Posts: 1667
Thanks for making this. I've been using it to make ragdoll corpses for enemies in my game.  8)




« Last Edit: March 20, 2017, 03:26:57 am by twotimingpete »

captaincomic

  • *
  • Posts: 6109
Hey!

Sorry for my long absence, I was busy with work. I still hope to get back to Stencyling when I have some more time again ...

Thanks, CmdrWhitey13. I fixed the broken links (Dropbox public folder stopped working), the files are now on GitHub.

I'm really glad you found some use for it, twotimingpete. How did you pull that off? Animated sprites while alive and when they die you create the joints and individual body parts? Anyway, it's looking great!

LIBERADO

  • *
  • Posts: 2381
Wow... @captaincomic, I am really glad you are back.  :)
   
Currently we are using your great extension for a mechanics mini Jam.
   
Soon ya, little mechanics jam, lets do this.
So the only rule is, the game/demo must contain at least 1 joint. Bonus points given to those who use the joint extension.
More info: http://community.stencyl.com/index.php/topic,51310.0.html
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

twotimingpete

  • *
  • Posts: 1667

I'm really glad you found some use for it, twotimingpete. How did you pull that off? Animated sprites while alive and when they die you create the joints and individual body parts? Anyway, it's looking great!


thanks! when the enemy dies the "real" enemy sprite vanishes and a ragdoll corpse is spawned in in its place.

It works well, the only thing I'd really want is some kind of editor that made it easier to figure out where the joints should be and how to space everything apart to form the corpse. As it is now it's tons of trial and error to get each piece in place.

squeeb

  • Posts: 1098

I'm really glad you found some use for it, twotimingpete. How did you pull that off? Animated sprites while alive and when they die you create the joints and individual body parts? Anyway, it's looking great!

I agree! Most of the time it's me waiting to compile to see if it looks right.. and I work on something else while it compiles haha... then I change a number.. hit compile and work on the other thing.. wash rinse repeat haha
thanks! when the enemy dies the "real" enemy sprite vanishes and a ragdoll corpse is spawned in in its place.

It works well, the only thing I'd really want is some kind of editor that made it easier to figure out where the joints should be and how to space everything apart to form the corpse. As it is now it's tons of trial and error to get each piece in place.

twotimingpete

  • *
  • Posts: 1667
I made a seperate project just for determining the values because it compiles much faster -- then I copy those over to the real project afterwards.

squeeb

  • Posts: 1098
I made a seperate project just for determining the values because it compiles much faster -- then I copy those over to the real project afterwards.
Great idea! Thank you!

Siren Games

  • *
  • Posts: 101
Hey!  Just came across this extension and I've been toying with it to see if it would be beneficial to work into my project.

But... the Joint Sandbox demo doesn't download anymore on the Forge and I can't figure out how the weld joint works.  I assumed that since there really weren't any blocks to configure it, that it'd just work automatically, but that's not the case.  When I turn on debug drawing it looks like a second (and sometimes a third depending on the coordinates I give it?)  joint is being created between the point I declare and the center of the first object.  This joint stretches when the other object begins to move.  I've tried changing all sorts of physics options on the "glued" object, but nothing seems to help.

Any advice?  Am I missing something?

colburt187

  • *
  • Posts: 2053
Hey!  Just came across this extension and I've been toying with it to see if it would be beneficial to work into my project.

But... the Joint Sandbox demo doesn't download anymore on the Forge and I can't figure out how the weld joint works.  I assumed that since there really weren't any blocks to configure it, that it'd just work automatically, but that's not the case.  When I turn on debug drawing it looks like a second (and sometimes a third depending on the coordinates I give it?)  joint is being created between the point I declare and the center of the first object.  This joint stretches when the other object begins to move.  I've tried changing all sorts of physics options on the "glued" object, but nothing seems to help.

Any advice?  Am I missing something?

can you post your code, I've worked quite a bit with joints.

Siren Games

  • *
  • Posts: 101
I've actually just decided to go with a simpler route, to be honest.  The extension is great and everything else seems to work alright, so I'm guessing I'm just missing something, but there's a million ways to "anchor" an actor to another actor, which is all I needed at the moment, so I'll pick another method.

Thanks though!