Walkthrough by mouse in showroom like littleworkshop

Hi
I want to run a walkthrough like this project for myself by mouse. detecting surfaces like ground and stairs, and move the camera smoothly to that place like a person walking. And I want to prevent the camera from going over the wall
Can you help me with how to do it?

Look at the circle on the ground

an R3F example. The hot spots are invisible and placed where i want the floor to be clickable.

2 Likes

If first intersected object is floor then show circle and can go.