avoid gltf collision #410
Unanswered
abhi-dasgupta
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
I have a room (gltf) imported via useGLTF from @react-three/drei.
The PerspectiveCamera along with OrbitControls is inside the model.
I've set up all keyboard controls I wanted and can move inside the model, the scene actually.
I would like to stop the camera from going further when it reaches the room wall.
What is the best way to implement this?
Its my 3rd day with thress.js in general, sorry if this is a stupid question.
Kind regards
Beta Was this translation helpful? Give feedback.
All reactions