VoxBreaker | An OOP Voxel Destruction module

Yeah of course, if you’ve got any ideas or suggestions then you’re free to share, or shoot me a dm if you’d prefer that.

Do you have discord? If I figure anything out inside my own module I can for sure let you know, that’s if you hadn’t already done it already lol, also idk if you noticed i edited my message, i included a video of mine in action lol, i started it a couple days ago

1 Like

Yeah, my user is bartoken on discord. And your system looks pretty nice, but I can see you’ve also run into the issue of parts flashing as they’re divided.

I’ll add you soon, it has to do with the parts being replaced I’m going to see if there’s any better way to make this system soon :pray:

1 Like

what do you think about using this instead of partcache, it seems to be more performant

3 Likes

are you ever going to add onto this to include the destruction of wedges since only blocks are supported

I’d love to but at the moment I don’t currently think its possible. If you need to divide wedges then I suggest looking into csg operations

Lol I reccommended this to him in private messages, pretty silly I didn’t do it here haha

He said he’d look into it

1 Like

Hi, sorry to butt into this conversation, but you can try turning off CanCollide, CanQuery, and CanTouch all to false when the Voxel are being created and you can set them back to true after. (this reduces the “flash” )

Also, I don’t 100% have the picture of what you meant when the parts are flashing when they’re created, but I’m guessing you’re saying they flicker by going transparent for a split moment during the creation of the voxel. Hope this helps and also thanks for the resource!

I added a simple part


Using cut in half I made reset time 3 seconds

After 3 seconds part just gone

Is it what should happen?

Voxel Physics vs VoxBreaker? which one is best for games like jujutsu shenanigans?

VoxBreaker, it feels very smooth and in my game ( I am tryna recreate the same jjs destruction), and the voxels js break like the parts were already cut. Smooth as Butter

1 Like

quick little update, expect a massive update in a few days. I will be overhauling pretty much everything. @527366 Made some great suggestions so I’ll be implementing those.

2 Likes

Cool! Can you tell us some of the stuff that’s upcoming, if possible? Will you try to implement ObjectCache?

i hope it gonna be the new algorithm or the implementation of greedy mesh :money_mouth_face:

Its a major work in progress atm, but for one I’ve almost completely removed the “flashing”

8 Likes

that is amazing ur doing the lord’s work rn :sob: :pray:

4 Likes

Yoooo, can you message me the file for this, I wanna try it out and maybe look through the code to see what changed.

How did you manage to eliminate the flashing? What’s different than before? And was this with or without partcache/objectcache btw, this seems really cool.

1 Like

Ive completely rewritten the logic for the module, and its kind of alot to explain so ill spare you the details for now until its fully functional. And this uses object cache. And I would send you a file but there are some major bugs that im still trying to work out.

3 Likes

Woah, that looks so much smoother