Camera pan/tilt to sensible values

This commit is contained in:
2026-05-01 10:57:05 +00:00
parent 8e78d14086
commit 261e18af83
3 changed files with 43 additions and 37 deletions
@@ -1,9 +1,9 @@
import { useState } from 'react'
const PAN_MIN = -Math.PI / 2 // -9
const PAN_MIN = -Math.PI / 3 // -6
const PAN_MAX = Math.PI / 2 // +90°
const TILT_MIN = -0.524 // -3
const TILT_MAX = 0.960 // +5
const TILT_MIN = -Math.PI / 2 // -9
const TILT_MAX = Math.PI / 4 // +4
const toDeg = (r) => Math.round(r * 180 / Math.PI)