How to make object from one component 'lookAt' another object in another component?

Viewed 34

I'm fairly new to both React and Threejs and am having a hard time wrapping my head around how to make an object from one component lookAt another object from another component using react-three-fiber and @react-three/drei. I have a custom PerspectiveCamera with controls in one component and some Text using @react-three/drei in another component. What I would like to happen is have the Text and planeGeometry face the camera at all times

Any help would be great! CodeSandbox here: https://codesandbox.io/s/wonderful-chaplygin-hihx70?file=/src/App.js

0 Answers
Related