Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit3bb1da2647

README.md

primitives

Spawn common procedural shapes with sensible defaults — the quick stand-ins and ground you drop while building a scene.

A visual cube at a position (no physics unless you add it), a flat ground plane scaled to size with static physics and an optional tint, a hexagonal ground tile with static physics, and a procedural tree from a preset (oak, pine, birch, willow, palm, baobab, dead, bush) with a static collider. Each spawns an entity backed by a builtin primitive mesh; the ground and tree variants wire in static physics so dynamic entities rest on them.

The primitive meshes these spawn are each centred on their own local origin, so a scale or size argument reads directly as the size the shape covers in the world. types/mesh lists each one's extent: the cube, sphere, cylinder and cone span one unit, and the capsule, torus and the two ground tiles carry their own.