A few requests

Over at IncrediBots, we have found a few glitches that are very useful.

BlackHole: This is two shapes, one fixated (doesn't move), connected by a sliding joint at 0 length. I hear it acts as a black hole because 0 or infinity with Box2D acts like a black hole.

Any colliding shape that runs into this socalled black hole is deleted from simulation veiw.

It would be nice to add this because currently they disabled building these in IB2, and they glitch replays aswell.

Self Balancing Stick: This is a black hole, with a fixed joint attached to it, and then deleting the fixed joint. This gives you a nonrotateable shape.

It would be great to add this because when this SBS has camera focus, it glitches the replay just like a BH.

Exotic Matter: This is a bit more complex. It is a black hole, and a fixated shape with a sliding joint that falls into the black hole. When the end of the slider is sucked up, the rest becomes an exotic substance.

When you sit on top of this exotic matter, it stacks gravity. Having a gravity of one would go from 1, to 2, to 4, to 8, to 16, to 32, and on and on... Eventually, this shape has too much gravity and goes right through the exotic shape. Rotating joints are easily breakable, and have a 50-75% chance of being pulled apart.

It is great for shredding ragdolls. 😆

Jelly joint: This can be made in the game with two rotating joints placed apart from eachother.

Both of the joints stretch, but don't break, and therefore spring back.

Cars have been made with this jelly. They can squish and fit into smaller spots than how big they originally were, then spring back to their original state.

You could make this by copying a rotating joint script into a new one and editing it so it springs back to the original rotation.
Hey funky3000 -] Haha.

"Black holes" can easily be made, and does not necessarily need Box2D to do so (though there is a function for it). Removing shape objects on contact is easy. It's just that Incredibots' glitch is a bug in 0-distance prismatic joint (Incredibot's sliding joint).

"Self Balancing Stick" kind of already exists and there's really just a single field of a shape object to determine if the shape should rotate or not. So again, a bug in Incredibots, where an object that's supposed to be non-existent (because of the "black hole") is partly inactive (which turns off the rotating ability).

"Exotic matter" is a fairly different story from the previous. It's a relatively big bug, but again, can easily be made by "gravity areas", where gravity in that area is different from the main gravity.

"Jelly joint" is easy to do in Box2D as well (rotating joint is revolute joint in Box2D).

Original thread: https://box2d.org/forum/viewtopic.php?t=3850