Jump to content

Recommended Posts

Posted

Hello everybody,

 

I have 2 problems with my Gun model.

1. In iron sight mode, the Gun intersects with my player camera.

2. When I move close to the wall, the Gun goes through it

Show me the right way to solve please smile.png I mean how to avoid these problems

post-16833-0-89882400-1456025594_thumb.jpg

post-16833-0-33125600-1456025599_thumb.jpg

Posted

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
Posted

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

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.

×
×
  • Create New...