LBP inspired building system

I am recreating game mechanics from other games to test my skills. This is an early wip showcase of my attempt on the building mechanic from the LBP franchise. I calculate the ray plane intersection points from the cusor to draw a shape, then use dynamic mesh actors to create the mesh from those points.

2 Likes

On my second day on this project so far, i worked on the ability to draw in all directions. Drawn objects also interact with each other.

Additionally i fixed all bugs so the system works better and shipping builds no longer crash and work properly.

You can now draw in all 3 axis. If your drawn mesh overlaps existing meshes it also cuts through them through all axis.

The collision mesh is now generated via cpp and uses the same polygon data as the visual mesh, making collision mesh identical to the mesh shape. Physics are much more accurate this way and the collision mesh generated way faster than the previous blueprint method i used.

I moved the system into a new empty project to keep it clean so the ui and materials are currently missing.

You can now move the canvas around. I also added some ui to make it look a little nicer. Most time i spent cleaning up the code to make it easier to maintain. Working on more features next.

Currently cutting through a mesh from multiple angles can sometimes mess up the collision, it doesnt always happen but i need to find the reason and fix it.

early prototype for brush supoort. Currently lasso and sqaure brush available. Cutter can use brushes too, just didnt showcase it here

reworked the collision and mesh generation entirely.
Old method: 2,9s
New method: 0.2s

I archived this by working with 2d polygon data instead of using boolean operations on 3d meshes directly. Can cut through entire mesh or just up to a certain depth.