[SOLVED] Flashlight goes inside the wall

If someone knows a solution plz tell
https://playcanvas.com/editor/scene/1590781

Hi @Brent_Reddick,

That’s a common problem in FPS controllers. One relatively easy fix is to add a 2nd camera, with a higher priority to your scene and have it render your gun model.

Make sure Clear Color Buffer is disabled on this camera and then use a separate layer of yours e.g. Gun to have this camera only render this model (remove all other layers in the Layers property).

Hope that helps.

huh, what do you mean second camera?

Add a second camera entity to your scene hierarchy, you can have multiple cameras rendering at the same time.

really?
ok do you have example

I don’t have one mind, but I feel this has been brought up in the past in this forum. Try using the search on top right.

ok all I need to know is how to make it only render the flashlight

layers wont work

YAY IT WORKS THANKS SO MUCH!
a