bbmario Posted June 7, 2016 Share Posted June 7, 2016 This is weapon clipping: http://forum.unity3d.com/attachments/firstpersonview_feature-jpg.155452 In Unity, it's an easy fix: http://answers.unity3d.com/questions/41298/fps-gun-clippes-through-walls.html How this can be done in Babylon? Quote Link to comment Share on other sites More sharing options...
Boz Posted June 7, 2016 Share Posted June 7, 2016 Just an idea : merge your meshes 'player' + 'weapon' in a parent , and apply moveWithCollisions() on the parent ? The bounding info should be recalculated and it can prevent weapon going through walls As I said, take it as an idea, I have never met this problem. Quote Link to comment Share on other sites More sharing options...
adam Posted June 7, 2016 Share Posted June 7, 2016 I'd try playing around with your gun's renderingGroupId. http://www.babylonjs-playground.com/#JY2T5#18 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.