SpatialWheelLayout

Sizes of the compass bezel and the handles around the disk, in meters.

Types

Link copied to clipboard
data class CompassPoint(val letter: String, val angle: Float)

Properties

Link copied to clipboard
const val BEZEL_LIFT: Float = 0.005f

How far the bezel's top stands above the highest point of the map's edge.

Link copied to clipboard
const val BEZEL_WIDTH: Float = 0.022f

Radial width of the bezel.

Link copied to clipboard
const val CHAMFER: Float = 0.004f

Size of the chamfer on the bezel's top edges.

Link copied to clipboard

The compass points and where they sit on the bezel. North is -z on the map, east +x.

Link copied to clipboard
const val GAP: Float = 0.001f

Gap between the disk's edge and the bezel.

Link copied to clipboard
const val HANDLE_COUNT: Int = 8
Link copied to clipboard

Handle angles in the yaw sense, set between the compass points so none sits under a letter.

Link copied to clipboard
const val KNOB_RADIUS: Float = 0.009f
Link copied to clipboard
const val MAXIMUM_TOP: Float = 0.03f

The bezel never stands taller than this above the table's zero height.

Link copied to clipboard
const val REACH: Float

How far the whole wheel reaches past the disk's edge.

Link copied to clipboard
const val SPOKE_LENGTH: Float = 0.03f
Link copied to clipboard
const val SPOKE_RADIUS: Float = 0.0035f

Functions

Link copied to clipboard
fun knobDistance(diskRadius: Float): Float

Distance from the center to the middle of a knob.

Link copied to clipboard
fun point(distance: Float, angle: Float): Vec2

x/z of a point at a distance from the center at an angle in the yaw sense.