Changes
Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
@@ -44,6 +44,11 @@ export function XRControllerMeasure() {
|
||||
const laserMat = useRef(new THREE.LineBasicMaterial({ color: '#22c55e', transparent: true, opacity: 0.7, depthTest: false }));
|
||||
const tipColor = useRef(new THREE.Color('#22c55e'));
|
||||
|
||||
// Dwell detection for hover-based smart measurement (1 s)
|
||||
const dwellPos = useRef(new THREE.Vector3(Infinity, Infinity, Infinity));
|
||||
const dwellStart = useRef(0);
|
||||
const dwellFired = useRef(false);
|
||||
|
||||
useFrame((_state, _dt, frame: XRFrame | undefined) => {
|
||||
const measureMode = useModelStore.getState().measureMode;
|
||||
if (laserRef.current) laserRef.current.visible = false;
|
||||
|
||||
Reference in New Issue
Block a user