StaticcreateCreates an occluder object that only render depth but not color
The type of primitive to create
The created object
StaticcreateCreates a primitive object like a Cube or Sphere
The type of primitive to create
Optionalopts: ObjectOptionsOptions to create the object
The created object
Creates a primitive object like a Cube or Sphere
The type of primitive to create
Optionalopts: ObjectOptionsOptions to create the object
The created object
StaticcreateCreates a Sprite object
Optionalopts: Omit<ObjectOptions, "material">Options to create the object
The created object
StaticcreateCreates a 3D text object
The text to display
Optionalopts: TextOptionsOptions to create the object
Utility class to create primitive objects
Example