Skip to content
← Back to Community
SortaBomber - Explosion Physics
Profile icon
tussiez

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 😭)
Voters
Profile icon
CodeThenRest
Profile icon
Hibaosama
Profile icon
CODERGUY1
Profile icon
JasonLiu19
Profile icon
MylsKeena19
Profile icon
GraceTarpley
Profile icon
elburg
Profile icon
Kavin6422
Profile icon
FrancisPan
Profile icon
ch1ck3n
Comments
hotnewtop
Profile icon
Bookie0

I have found....the unbreakable thingy:

Behold in all it's grandeur:

Screen Shot 2021-04-07 at 10.53.57 AM

Still here!
Screen Shot 2021-04-07 at 10.54.06 AM

So many explosions I've made the other orchid blocks go away!
Screen Shot 2021-04-07 at 10.54.33 AM

Now it's all alone! :(
Screen Shot 2021-04-07 at 10.55.21 AM

Profile icon
tussiez

@Bookie0 Behold...

the parent object!

Profile icon
Bookie0

@tussiez *gasp!

Profile icon
mollthecoder

@Bookie0 I see you use ChromeOS. It seems everyone on replit does.

Profile icon
Bookie0

@mollthecoder i uh don't. I use macOS what makes you say that?

Profile icon
mollthecoder

@Bookie0 My mistake. I said that cause the cursor was the same as Chrome OS's cursor. It seems they have the same cursor.

Profile icon
Bookie0

@mollthecoder ah I see np lol

Profile icon
JWZ6
Profile icon
FlaminHotValdez

@mollthecoder I'm on Ubuntu 20.04 and I also have the same cursor

Profile icon
tussiez

@JWZ6 super ping

Profile icon
tussiez
Profile icon
JWZ6
Profile icon
personmandude

@mollthecoder I am on a school chromebook for coding in school and a bunch of other people probably are

Profile icon
tussiez
Profile icon
LaneMartin

Let's honor the people who play this without a mouse.

Profile icon
LaneMartin

@LaneMartin This is how the Germans bombed London:

Screen recording 2021-04-08 2.45.11 PM

Profile icon
tussiez

@LaneMartin

"Can you see where it's going to land?"
"No."
"Just spam it ig"

Profile icon
AryyanVineeth

@LaneMartin I played this without a mouse.

Profile icon
LaneMartin
Profile icon
OldWizard209

Wait, firstly, it says:

image

Assuming it is "Physics" with a "C", How in the "PHYSICS WORLD" does this make sense?:

image

Oh or probably it is just the subject of "Physijs" not "Physics".

Profile icon
IronStarkMan

Well, IMMA call Mr.Neil deGrasse, this can't be tolerated. @OldWizard209

Profile icon
OldWizard209
Profile icon
tussiez
Profile icon
DavidHilsee

@OldWizard209 it says physijs because it is written in javascript (aka js)

Profile icon
FloCal35
Profile icon
JWZ6
Profile icon
tussiez

@FloCal35 Booom

Profile icon
[deleted]

@FloCal35 my eyes

Profile icon
JacobMcPherson1
Profile icon
ch1ck3n
Profile icon
tussiez

@ch1ck3n Yes Rico,Kaboom

Profile icon
SleepySid

The dust clears

image

It still stands

image

Profile icon
tussiez

@SudhanshuMishra The all powerful

Profile icon
LaneMartin

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.

Profile icon
Soccer135246

I like how you can launch bombs from the top, change the angle, and view it like a 3D bombing simulation

Profile icon
Soccer135246

@Soccer135246 oh wow I can hit them from under and they still move...

Profile icon
LaneMartin
Profile icon
EliasTheGreat

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

Profile icon
jihhyuu202

Reasons why:

  1. roblox physics
  2. roblox physics
  3. roblox physics
  4. roblox physics
    @EliasTheGreat
Profile icon
LaneMartin

This is pogger @tussiez

Profile icon
tussiez
Profile icon
notTussiez

@tussiez you're an imposter

Profile icon
LaneMartin

@notTussiez lol notTussiez lol funny name

Profile icon
notTussiez

@LaneMartin Trust me, he's not the real one

Profile icon
LaneMartin

@notTussiez lol ok hehe

Profile icon
Unclyscam123

coool

Profile icon
tussiez
Profile icon
EverettGriffin

also suggestion make more buildings and make more bombs and make an auto clicker for it cause... >:) destruction

Profile icon
tussiez

@EverettGriffin Hah, will plan on doing this summer

See https://sortabomber2.sortagames.repl.co

Profile icon
EverettGriffin

omg i needed this in ma life!!!! this is realllllly fun

Profile icon
tussiez
Profile icon
LeonNicosia

do NOT use an autoclicker

Profile icon
ch1ck3n

@LeonNicosia screw you i put it at 1 millisecond

Profile icon
tussiez

@ch1ck3n I laugh because I know what happens

Profile icon
LeonNicosia

@ch1ck3n i did put it at 1 millisecond

Profile icon
tussiez
Profile icon
bwoop
Profile icon
tussiez

@bwoop 10/10

Profile icon
[deleted]

Does not work on Chrome 76/ChromeOS
It works if I boot up Ubuntu 20.04 on my chromebook tho with Chrome 89

Profile icon
tussiez

@novaflippers school chromebook? This uses a lot of experimental stuff, it’s not implemented and supported everywhere yet

Profile icon
[deleted]

Which library was this built with?

Profile icon
tussiez

@novaflippers Threejs (WebGL) and Physijs (physics, using Ammo --> pybullet)

Profile icon
[deleted]

@tussiez ooo ty

Profile icon
PyCoder01

this is basically roblox 2007

Profile icon
PyCoder01

the ball is from crossroads roblox lol.

Profile icon
tussiez
Profile icon
FlaminHotValdez

*throws a literal bomb at the tower*
*blocks explode*
*top of the tower doesn't fall down*
Ah yes, physics.

Or is it fisix?

Profile icon
tussiez

@FlaminHotValdez This is normal Roblox behavior

Profile icon
jihhyuu202
Profile icon
ChopSueyMaster

bumbs go brrrr

Profile icon
tussiez
Profile icon
[deleted]

pog

Profile icon
tussiez

@TheC0derGirl

pogger

Profile icon
[deleted]

@tussiez

poggers

Profile icon
tussiez

@TheC0derGirl Super pogger

Profile icon
[deleted]

@tussiez super duper pogger

Profile icon
LingWu1

Aymazing
Pog

Profile icon
tussiez
Profile icon
LingWu1
Profile icon
FlaminHotValdez

solid proof that green is better than purple. Time to spraypaint my room

Profile icon
tussiez
Profile icon
LaneMartin
Profile icon
FlaminHotValdez

@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

Profile icon
LaneMartin

@FlaminHotValdez i know that

Profile icon
tussiez
Profile icon
alpha2442

Neither the window in this repl or another tab will load... How long should I wait?

Profile icon
tussiez

@alpha2442 ?! Press Run?

Profile icon
alpha2442

@tussiez even if I press run it doesn't work bruh

Profile icon
tussiez

@alpha2442 Are you using a personal not school, desktop computer and Chrome? A lot of my Repls use experimental technology

Profile icon
alpha2442

@tussiez yeah I'm using a PC and also chrome

Profile icon
tussiez

@alpha2442 Latest version? Huh, send me a screenshot of DevTools' console and Network tab

Profile icon
tussiez
Profile icon
alpha2442

@tussiez i restarted my tab and also closed all of my tasks i don't need in windows task manager and it seems to be working now because the program needs quite a bit of power to run apparently

Profile icon
tussiez

@alpha2442 True - it's a 3D physics engine

Profile icon
FallenAngel6

tower gravity when?

Profile icon
DouglasGoodyear

@FallenAngel6 english learn when?

Profile icon
DavidHilsee

@DouglasGoodyear you know what he meant why do you have to be like that

Profile icon
jihhyuu202

roblox physics @FallenAngel6

Profile icon
tussiez
Profile icon
FallenAngel6

poggers 100

Profile icon
tussiez
Profile icon
LaneMartin

This needs a lot more upvotes

Profile icon
tussiez
Profile icon
LaneMartin