SortaBomber - Explosion Physics
SortaBomber
Blow up stuff.
This is my replica of Roblox's "welds" system. This groups static objects together, e.g buildings, but when hit above a set speed, the building will break.
Controls
- (RIGHT) click and drag to look around.
- (LEFT) click to fire explosives.
Improvements
I modified Physijs to work with the WASM version of Ammo, which has improved performance by.. a lot. It's now possible to simulate a few hundred blocks now without any lag. I would update the car physics game with this, but there are a few underlying problems with Physijs itself and Ammo (I spent a few hours getting collisions to work correctly), which means more bug fixing :/
How it works
Objects are first added to a parent object. This makes them a compound shape. Explosions are calculated by their position and force. The overall group has a set "strength", and this is reduced by repeated explosions, amplifying the damage done. The velocity of an object is reduced by the distance it is from the explosion, and increased by the explosion force. Objects farther away from the bomb move slower, and vice versa. Because objects cannot move independently from their parent, the ones nearest to the explosion are orphaned and made dynamic. Simply removing the object from the parent and adding it to the scene doesn't work, so I clone the object (probably a bad idea) instead.
Enjoy!
Play new version! (with buildings)
Play it!
Not working?
This Repl uses experimental technology that may not yet be supported across all platforms and browsers. For the best experience, use the following:
- A home desktop/laptop computer, some schools may block some files
- Chrome 89 or as recent as possible
What may be the issue:
- WASM
- Module Web Workers
- WebGL
- ES6 (Don't use Internet Explorer 😭)
Let's honor the people who play this without a mouse.
@LaneMartin This is how the Germans bombed London:
"Can you see where it's going to land?"
"No."
"Just spam it ig"
@LaneMartin I played this without a mouse.
Well, IMMA call Mr.Neil deGrasse, this can't be tolerated. @OldWizard209
@OldWizard209 it says physijs because it is written in javascript (aka js)
@SudhanshuMishra The all powerful
You should add an option where you can have more than 1 tower but the maximum in 10 so it feels like bombing an entire city and not just a puny building.
I like how you can launch bombs from the top, change the angle, and view it like a 3D bombing simulation
@Soccer135246 oh wow I can hit them from under and they still move...
This is really cool, with nice physics, the only citicism about it I have is the update ing of physics, it looks like a bomb only updates blocks around it and dosn't account for physisics that was not in the radious of the blocks
Reasons why:
- roblox physics
- roblox physics
- roblox physics
- roblox physics
@EliasTheGreat
This is pogger @tussiez
@LaneMartin pogger
@tussiez you're an imposter
@notTussiez lol notTussiez lol funny name
@LaneMartin Trust me, he's not the real one
@notTussiez lol ok hehe
coool
also suggestion make more buildings and make more bombs and make an auto clicker for it cause... >:) destruction
@EverettGriffin Hah, will plan on doing this summer
omg i needed this in ma life!!!! this is realllllly fun
@EverettGriffin Thanks!
do NOT use an autoclicker
@LeonNicosia screw you i put it at 1 millisecond
@ch1ck3n i did put it at 1 millisecond
@LeonNicosia Uhoh
Does not work on Chrome 76/ChromeOS
It works if I boot up Ubuntu 20.04 on my chromebook tho with Chrome 89
@novaflippers school chromebook? This uses a lot of experimental stuff, it’s not implemented and supported everywhere yet
Which library was this built with?
@novaflippers Threejs (WebGL) and Physijs (physics, using Ammo --> pybullet)
@tussiez ooo ty
this is basically roblox 2007
the ball is from crossroads roblox lol.
*throws a literal bomb at the tower*
*blocks explode*
*top of the tower doesn't fall down*
Ah yes, physics.
Or is it fisix?
@FlaminHotValdez This is normal Roblox behavior
yes.
@tussiez
bumbs go brrrr
@TheC0derGirl Super pogger
@tussiez super duper pogger
solid proof that green is better than purple. Time to spraypaint my room
COME ON @tussiez ONLY 4 MORE TO GO:
@LaneMartin boi...why do you care about cycles? they are useless internet points. Also that is weekly...In the long run, RayhanADev is more than 500 cycles ahead of tussiez anyway
@FlaminHotValdez i know that
Neither the window in this repl or another tab will load... How long should I wait?
@alpha2442 ?! Press Run?
@alpha2442 Are you using a personal not school, desktop computer and Chrome? A lot of my Repls use experimental technology
@alpha2442 Latest version? Huh, send me a screenshot of DevTools' console and Network tab
@alpha2442 Looks like this:
@alpha2442 True - it's a 3D physics engine
tower gravity when?
@FallenAngel6 english learn when?
@DouglasGoodyear you know what he meant why do you have to be like that
roblox physics @FallenAngel6
Yes.. @jihhyuu202
poggers 100
@FallenAngel6 pogger
This needs a lot more upvotes
I have found....the unbreakable thingy:
Behold in all it's grandeur:
Still here!

So many explosions I've made the other orchid blocks go away!

Now it's all alone! :(

@Bookie0 Behold...
the parent object!
@tussiez *gasp!
@Bookie0 I see you use ChromeOS. It seems everyone on replit does.
@mollthecoder i uh don't. I use macOS what makes you say that?
@Bookie0 My mistake. I said that cause the cursor was the same as Chrome OS's cursor. It seems they have the same cursor.
@mollthecoder ah I see np lol
@Bookie0 lol @mollthecoder @tussiez
@mollthecoder I'm on Ubuntu 20.04 and I also have the same cursor
@JWZ6 super ping
@FlaminHotValdez Yee
@tussiez lol
@mollthecoder I am on a school chromebook for coding in school and a bunch of other people probably are
@personmandude Yea