Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I make a viewmodel overlap all objects?

Asked by 3 years ago

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!

1 answer

Log in to vote
0
Answered by 3 years ago

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?

Ad

Answer this question