5 minutes
Rocks That Look Like Rocks
The stream is a line of white spheres, and the plant ring sits still. Rocks should be lumpy and should tumble.
A seed for the shape, a quaternion for the turn
Each rock's surface is pushed in and out by a sum of sine waves whose phases come from a seed, plus one lobe, one hollow and a stretch. The seed comes from the entity's id, so a pool slot is the same rock for life.
A tumble is a turn. Three Euler angles, each advanced by its own rate, are not a turn about the rate's axis once two of them move. Engines also read the three in different orders: Babylon turns about Y, then X, then Z, and Three about X, then Y, then Z. With a rate of [1, 1, 0]:
Continue reading
Unlock the Full Course
Every lesson, the runnable examples, and the finished build — yours to keep.