Skip to content

Commit

Permalink
ci: added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicpotato137 committed Oct 15, 2023
1 parent 4189999 commit e2021c5
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const useAutoNavigate = (cameraControlsRef: RefObject<CameraControls | nu
// camera movement to selection params
const [minDistance, setMinDistance] = useState(arriveDistance)

// find the target position for the camera
const destination = useMemo(() => {
if (showSelectionGraph) {
return new Vector3(0, 0, 0)
Expand Down Expand Up @@ -70,14 +71,10 @@ export const useAutoNavigate = (cameraControlsRef: RefObject<CameraControls | nu
pos = new Vector3(2 * selected.x - ax * l, 2 * selected.y - ay * l, 2 * selected.z - az * l)
}

// console.log('selected pos')
// console.log(new Vector3(selected?.x, selected?.y, selected?.z))
// console.log('calculated pos')
// console.log(pos)

return pos
}, [showSelectionGraph, selectedNode, graphData])

// find the node that the camera should look at
const lookat = useMemo(() => {
if (showSelectionGraph) {
return new Vector3(0, 0, 0)
Expand Down

0 comments on commit e2021c5

Please sign in to comment.