Hey there! I'm making an FPS game. I have made the gun follow the camera, animations are done, etc. But the main problem is that the viewmodel goes straight into a wall/ground whenever I get to close. Is there any way I can fix this? I haven't been able to try anything since I don't know where to start. Any help is appreciated!
You could try to use Raycasting to determine the distance from the gun and the objects then maybe move it back a bit when your close?