Well, I was trying to make an FPS system. But there is one problem. The arms go into the wall when coming too close. I do not know a way to do this!
The only way that I know how to do this right now is by using a ViewportFrame. However, that comes with one huge side-effect of not rendering lighting. I’m not sure if there’s any other method at this point in time sadly.
I really do not want to use them. But I will wait for some kind of feature for this.
Yeah, it would be useful for nearly any game (even non-FPS games). You can technically change the lighting source angle, but I think you only get one. Plus ViewportFrame seems to render models in lower resolution.
I think there’s a way to do it without ViewportFrames, but I doubt the lighting will be accurate due to the method used. Nor would it work with complex models.
The above method can be found here: “Mirror” by EgoMoose
If you’re unwilling to use ViewportFrames, you could probably create a much smaller scale of the flashlight and position it closer to the player’s camera, that might be enough.
I will just wait for a feature to be released… I realized that the current methods are not that good
Actually, I suppose there are a couple of other methods I just remembered. I haven’t tried them myself, but perhaps they’ll work for you to some extent. You could even combine the methods.
You could automatically shrink the weapon when it gets near a wall, or you could apply a larger hitbox to prevent getting close enough to clip in the first place. It might be best to combine both to some extent though. Sadly, this is only a workaround for the proper way of doing things, but it’s a possible solution?