Quaternions
four numbers that rotate without gimbal lock
A unit quaternion stores a 3D rotation as an axis and half-angle. It composes cheaply, never gimbal-locks and slerps along the shortest arc.
The math under game code: rotations, interpolation and deterministic randomness.
3 cheat sheets · 3 subcategories
Representing and blending orientation in 3D.
four numbers that rotate without gimbal lock
A unit quaternion stores a 3D rotation as an axis and half-angle. It composes cheaply, never gimbal-locks and slerps along the shortest arc.
Turning linear progress into motion that feels right.
bend linear progress into motion with weight
An easing function remaps progress t from 0..1 so motion accelerates, decelerates, overshoots or bounces instead of moving at a robotic constant speed.
Seeds, noise and reproducible generated worlds.
same seed in, same world out, every time
A seeded PRNG plus gradient noise and fBm turns one integer into an endless, smooth, repeatable world: same seed, same terrain on every machine.