Hello Kaeya,
It seems you are experiencing issues with the camera rotating when dragging an object, and the object itself stuttering. The problem might be related to the DragControls component, particularly interactions between pointer events and the camera's transform (see the documentation).
To address the issue where the camera rotates when it's supposed to be stationary, make sure that any camera controls (like OrbitControls) are disabled or not conflicting with the DragControls during the drag operation. For the stuttering of the dragged object, this could be related to performance issues or conflicts between react-three/fiber's handling of the render loop and Needle Engine's expected behavior.
As React and Needle Engine integration can be complex, it might be beneficial to isolate whether the problem is occurring during the drag operation itself or during the camera's update. Injecting some debug logs or breakpoints could be helpful to understand the flow of events during the dragging process.
If needed, you may refer to the specific section on DragControls to better understand its implementation and events (see the documentation).
Please ensure that react-three/fiber is correctly set up to work with the Needle Engine's component system. If issues persist, consider reaching out to Needle Engine support or the community for assistance and provide details on the exact setup and issues you're facing.
1 messages left GPT 4
thread_K2wkBOiLCIuCnc39nz6HvfbE