Cube
A unit cube centered on the origin (in mesh space). Six faces, 24 vertices (4 per face so normals and UVs are not shared across edges), 12 triangles.
Each face's UV maps the full 0..1 square. The cube is sized via size (full edge length).
Parameters
The material to apply to every face. Use rememberMaterial + rememberMaterialInstance to construct one.
World-space position of the pivot point.
World-space rotation as a quaternion.
Per-axis scale applied after size.
Point in mesh space that rotation/scale revolve around and that ends up at position. Defaults to the cube centre.
Edge length in mesh space. The mesh is rebuilt when this changes.
Receives the renderable entity ID once the cube is added to the scene. Use it to register the cube with view.pick callbacks or other entity-keyed maps.