Hi! I can’t believe how hard this is, even though I’m not new to Unity, but I’m hitting a major brain block here.
I want a basic system where:
- a user clicks a point on a grid and release somewhere else, creating a wall. (not too difficult)
- walls are formed of segments that can be deleted (again, i can have i
happen using multiple game objects) - ‘rooms’ are determined if the space is enclosed: seemingly impossible. I could raycast all day long from the center of the room, if it hits a free-standing wall it thinks the room is closed when it isn’t.
- when a room is enclosed, you can ‘paint’ the floor using a ‘paint
bucket tool’ - again, impossible because i’m not using a tile system but free standing gameobjects. There’s nothing to ‘paint’ because I’d have to create a flat polygon structure based on the boundaries of the room which I do not know how to obtain
TLDR: the sims did it 10 years ago - aren’t there basic tutorials on the above somewhere?