Options for BoxShape
const options: BoxShapeOptions = { width: 20, height: 0, depth: 20 };const sky = new BoxShape(options); Copy
const options: BoxShapeOptions = { width: 20, height: 0, depth: 20 };const sky = new BoxShape(options);
Optional
Size along z
1 Copy
1
const lane = new BoxShape({ width: 1, height: 0, depth: 30 }); Copy
const lane = new BoxShape({ width: 1, height: 0, depth: 30 });
Size along y
const column = new BoxShape({ width: 0.5, height: 6, depth: 0.5 }); Copy
const column = new BoxShape({ width: 0.5, height: 6, depth: 0.5 });
Size along x
const wall = new BoxShape({ width: 8, height: 4, depth: 0.1 }); Copy
const wall = new BoxShape({ width: 8, height: 4, depth: 0.1 });
Options for BoxShape
Example