Replies: 2 comments 7 replies
-
Hey, we actually have a small helper hook to work with helpers, take a look here: https://drei.react-spring.io/?path=/story/misc-usehelper--camera-story
|
Beta Was this translation helpful? Give feedback.
-
I am struggeling to use CameraHelper with PerspectiveCamera. I think it's an import issue at this point but I'm really hoping to maybe get some more input on here. Here is my class, as condensed as possible, only showing relevant lines of code:
This does in fact build without errors, BUT when I run the app, it breaks with the following error message in Chrome's dev tools console: Note: Thank you SO much to anyone reading and maybe even replying! |
Beta Was this translation helpful? Give feedback.
-
I'm not sure how to attach a cameraHelper to a camera
This throws an error
TypeError: Cannot read property 'updateProjectionMatrix' of undefined
Upon inspecting the error, it seems like the 'camera' variable passed to the camera helper is undefined
Any help would be appreciated, thanks
Beta Was this translation helpful? Give feedback.
All reactions