At the moment we calculate camera positioning by using a <perspectiveCamera> inside a <group>.
It would be better to use a calculateCameraPosition({ coords, origin }) function that returned { position, rotation }, that we would apply to the perspectiveCamera ref.
At the moment we calculate camera positioning by using a
<perspectiveCamera>
inside a<group>
.It would be better to use a
calculateCameraPosition({ coords, origin })
function that returned{ position, rotation }
, that we would apply to the perspectiveCamera ref.