Replies: 1 comment
-
it's ref.current.lookAt(x, y, z) i believe. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm struggling to implement a targeted Spotlight in React-Three-Fiber, has anyone got one working?
I'm half-new to ThreeJS and new to react-three-fiber, and i'm struggling to implement a spotlight. In normal ThreeJS we can either point the target to an Object3d, or you can set the spotlight.target.position equal to a vector3d.
Maybe i'm missing something obvious, but i've tried a few different approaches - passing in a React DOM element (unsure of how to get an object3d) and Vector3 coords, and tried using props of target and lookAt, to no avail...
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions