Something like this looks awesome:
Then you aim downwards (while standing up) and oops part of the barrel disappears:
While crouched:
Or maybe you back into a wall:
So what can we do to fix it? Well, we could make the parts really small (for example, the arms could be size <0.2,0.4,0.2> and we could move them really close to the camera and because they were really close to the camera they’d appear normal size. Because they were so small and close to the camera, they’d also render over objects like that wall and floor. However, this does not work on ROBLOX, because if you move the camera too close this happens:
people have asked for solution on countless threads. For instance, there’s this thread, there’s also this thread, let’s not forget about this thread, there’s this thread, there’s this thread, and then there are likely a ton more that I couldn’t find in the search.
And even if ROBLOX does get that close-clipping fixed, there’s still the issue of animation. Have your gun move the magazine 2 studs down? The gun’s really close now, and the mag is really small, so if you made the gun 20x smaller, the magazine is going to move 20x more than it was supposed to. This means that making the gun smaller is not a desirable option.
In games like BF3 developed by professional studios, this does not happen (I’m so close to the plant that my camera is clipping through it, but the gun isn’t bisected by the plant at all):
So how do they do it? I assume they have a sort of ZIndex but for 3D models. We should be able to do something similar so our weapons/arms/torso/etc don’t clip through the environment in first person.