Hello everyone
Can you tell me how ArcRotateCamera can make the distance between the camera and the character model shrink when the camera touches the wall, and leave the wall to enlarge the distance between the camera and the character to avoid the camera wearing out the model?
Usually it is done with the help of raycasting - Babylon.js docs
1 Like
I’m going to learn how to do that. Thank you for your answer.
Here is the example - BabylonJS-CharacterController/src/CharacterController.ts at master · ssatguru/BabylonJS-CharacterController · GitHub
2 Likes
Thank you. That’s very helpful!
1 Like