Will become harder, once textures get implemented. Like, getting breaks on the bricks, different materials that behave differently, and so fort. Tear Down used voxels. But it looks awesome.
@warden46887 ай бұрын
Any update on this, i would like to do a project where you can "cut" out parts of a mesh but im not sure how to go about it. I saw on the other video you mention you split the mesh into smaller meshes then it collapses. I am fairly new to godot and this is exactly the sort of mechanic im looking to implement, so would appreciate it if i could get a look at the code or you could point me in the direction of some docs to read.
@steve163847 ай бұрын
On the face of it, it's not that complicated, but it does get a bit fiddly with the various 3D model aspects and the maths. To create a hole, I convert the original cube into 4 smaller cubes, which together cover the same area as the original cube but leaves a hole in the middle, and once they get too small I turn them into RigidBodies. Creating a new cube mesh is straightforward (CubeMesh.new()) and set its position and dimensions. Then add a collision shape of the same dimensions (e.g. BoxShape.new()), and finally add a material (probably re-using the same material as the parent). Although if you're new to Godot, it could be quite challenging. :)