Utility class to create primitive objects
const cube = ObjectUtils.createPrimitive("Cube", { name: "Cube", position: { x: 0, y: 0, z: 0 } }); Copy
const cube = ObjectUtils.createPrimitive("Cube", { name: "Cube", position: { x: 0, y: 0, z: 0 } });
Static
Creates a primitive object like a Cube or Sphere
Optional
Generated using TypeDoc
Utility class to create primitive objects
Example