Hello!
I'm trying to generate a random 3d dungeon build out of rooms.
My room is spatial node, with a floor and 4 walls made of CSGBox instances, and a Door CSGBox with subtraction to make a basic hole in the wall.
Basic structure:
Spatial:
- CSGBox Floor
- Spatial Walls
I'm making a script to dynamically generate rooms, and when I add another room to the scene at runtime, I fall through the floor.
Example Code:
var roompath = "res://Rooms/Room 3.tscn"
var roomscene = load(roompath)
var roominstance = room_scene.instance()
// Move the instance around to connect it to another room
Is there something I need to call to enable collision for my dynamically created room instance?