SpatialWheelSpin

Turns a sideways hand movement into a spin. A look-and-pinch drag moves the hand only a few centimeters, so following its angle around the middle barely turned the map; this turns the map by the distance moved, in the direction that carries the grabbed point along with the hand.

Properties

Link copied to clipboard
const val GAIN: Float = 2.0f

Radians per meter of hand travel, per meter of disk radius: twice the rim's own arc.

Functions

Link copied to clipboard
fun yawDelta(start: Vec2, current: Vec2, diskRadius: Float): Float

Yaw change for a drag that started at start and is now at current (table x/z, meters, +z toward the viewer). Grabbing the near half and moving right turns the map the other way from grabbing the far half, the way a wheel turns under the hand.