project_threejs_ai
project_threejs_ai copied to clipboard
easing.dampE not Working
When I am using
easing.dampE(
// group.current.rotation,
// [state.pointer.y / 10, -state.pointer.x / 5, 0],
// 0.25,
// delta
// );
with
<Environment preset="city" />
Then I am getting this error
CameraRig.jsx?t=1686343803010:44 Uncaught TypeError: Cannot read properties of undefined (reading 'rotation')
at Object.current (CameraRig.jsx?t=1686343803010:44:32)
at render$1 (index-22ee0173.esm.js:1516:22)
at loop (index-22ee0173.esm.js:1543:19)
and when I am commenting it the error is gone but the functionality is lost. Please help me with this issue I am stuck for 2 days now .
@Asura-Ang I think the group.current
is the reading undefined what you can do is Double-check the code where the group is defined and make sure it is initialized correctly.
Manually you can do add test case by simpley iterate upon the object
If you still see the error again feel free to reach me in here.
I'm facing the same problem, if I deleted the useFrame, but with the useFrame, I'm having new problems, the same error but with pointer and camera undefined
I shut down my laptop yesterday and today the code is working, idk why or how but wow
As soon as i click on ai full or ai logo button my screen goes white and i can see errors on the server terminal and even in inspect console.

Can someone please help me out with this....?
I know this is late, but I came across this issue too. Please check if you have linked the ref to the