// Default Scene - A simple scene with a floor and a tesseract Scene( name: "Default Scene", entities: [ EntityTemplate( name: Some("floor"), tags: ["static"], transform: Transform4D( // Entity transform positions the floor at y=-2.0 in world space // (Hyperplane visual mesh is created at y=0 in local space) position: Vec4(x: 0.0, y: -2.0, z: 0.0, w: 0.0), rotation: (s: 1.0, b_xy: 0.0, b_xz: 0.0, b_xw: 0.0, b_yz: 0.0, b_yw: 0.0, b_zw: 0.0, p: 0.0), scale: 1.0, ), shape: ShapeTemplate( type: "Hyperplane", // y is used for physics collider placement y: -2.0, size: 10.0, subdivisions: 10, cell_size: 5.0, thickness: 0.001, ), material: Material(base_color: (0.5, 0.5, 0.5, 1.0)), ), EntityTemplate( name: Some("tesseract"), tags: ["dynamic"], transform: Transform4D( position: Vec4(x: 0.0, y: 0.0, z: 0.0, w: 0.0), rotation: (s: 1.0, b_xy: 0.0, b_xz: 0.0, b_xw: 0.0, b_yz: 0.0, b_yw: 0.0, b_zw: 0.0, p: 0.0), scale: 1.0, ), shape: ShapeTemplate( type: "Tesseract", size: 2.0, ), material: Material(base_color: (1.0, 1.0, 1.0, 1.0)), ), ], gravity: Some(-20.0), player_spawn: Some((0.0, 0.0, 5.0, 0.0)), )