[PUBLIC] Frostblox Game Engine

Howdy, last night I started working on an engine that could fragment blocks, weld them, then blow them up when an explosion is spawned. The most impressive thing (In my opinion) is the smart-weld, but first let me explain how the system works.

An explosion is spawned, but it doesn’t do anything yet. Then the engine detects this explosion and begins to start this

Step 1: Find all parts near the explosion that have a mass greater than 12, then add them to step 2
Step 2: break parts into half size of each axis, so a Vector3.new(2,2,2) part would be Vector3.new(1,1,1), insert these into “model”, then repeat step 1

Eventually step one finds no parts nearby that are greater than 12 mass, so it converts to step 3.

Step 3: “Smart-weld” all of the parts in model, if the part is less than 12 mass then add it to debris in 10 seconds, if not then use a smart formula to weld to the most appropriate nearby blocks. (instead of just welding to the closest blocks, it welds to the biggest blocks nearby in proportion to the initial blocks mass, if that makes any sense)

Step 4: Un-anchor everything in the model so its held together by the smart-welds now, and now start a REAL explosion with an actual BlastPressure where the original explosion was, the fragmented parts are now thrown about.

Game: [Frostblox Engine] Demo - Roblox

PS: Press 3 o select the RPG, or press v to place an explosive barrel, so you can see the destruction!

Edit: engine is now super smooth!

So, this just happened…

Still, looks cool.

Yeah thats technically a roblox bug…

I love this game, keep up the work.

Didn’t someone create a fragmenting script a while ago?

Was it AgentFireFox or something?

Agent767 or something, his is completely different.

I love the fragmentation :smiley: It is allot of fun just blowing stuff up :stuck_out_tongue:

Update: Its now so stable you can carve through an entire block! :smiley:

Holy cow I just joined again. The huge blocks keep flying around and there wasn’t an insane improvement for shooting the center of some blocks…

It’s kind of cool, but needs a lot of work in my opinion. Blocks shouldn’t all be the same size and there should be a loss of “mass”.

I feel like it’s nothing too new. I’ve seen block fragmentation for quite a few years now on Roblox.

This is made to run in real time, not be super fancy, and the mass lost is in the debris thrown around, which if small enough is removed after a while. And finally, I have not once in all of my 2008-2014 history on ro lox seen anyone make recurrsive destruction, nor having actual flying fragments.

It’s definitely cool, I can’t program much myself! I think it could get a couple of realistic tweaks to make it look cooler though.

I’m open to suggestions.

Updated, its insane how smooth it is now! :smiley:

It’s quite blocky… But it runs very well! Except for the fact that it take a few seconds for the fragments to fall :stuck_out_tongue:

The blocky-ness can’t really be helped when you’re using such a small explosion (blast radius 5), but thanks :slight_smile:

Cut corners? :stuck_out_tongue:

…I CANT be the only one who prefers the blocky-ness .____________.

Please stop calling it a Game Engine. It’s a framework. lrn2terminology

All jokes aside though, nice work.

Thanks, just updated it again to run even faster! Blocks instantly fragment :smiley: