Jump to content

[SOLVED] Gun + Wall + Camera


tipforeveryone
 Share

Recommended Posts

I used to know how to do this, but don't remember exactly how. You need to create a second 'World' that only your gun goes in. The second world needs to only draw the gun, not anything else, including any background. That will prevent the gun going through walls, but won't fix the camera clipping issue. To fix that you either need to reduce the near range of the camera, or just move the gun further away. Creating a second world just for the gun will mean that the gun can be as big as you need it to be and it will still look normal. Hope this points you in the right direction

  • Upvote 1
Link to comment
Share on other sites

I used to know how to do this, but don't remember exactly how. You need to create a second 'World' that only your gun goes in. The second world needs to only draw the gun, not anything else, including any background. That will prevent the gun going through walls, but won't fix the camera clipping issue. To fix that you either need to reduce the near range of the camera, or just move the gun further away. Creating a second world just for the gun will mean that the gun can be as big as you need it to be and it will still look normal. Hope this points you in the right direction

 

Thanks Brutile, I will give this a try. :)

Hope others give me more idea too :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...