bbmario Posted September 22, 2015 Share Posted September 22, 2015 I'm following this tutorial on how to create an FPS with Babylon, but i'm stuck with some problems:When the first-person weapon model is too close to a ball or a wall, it gets clipped by the ball/wall model. Is there a way to fix this?How would you guys create this weapon-sway effect on the model? I mean, this: In the tutorial, scene.pick is used instead of a physics raycast. Is this really the way to go? Quote Link to comment Share on other sites More sharing options...
Temechon Posted September 27, 2015 Share Posted September 27, 2015 Hello bbmario, Sorry for my late answer - I think you can increase the ellipsoid size of the camera in order to include the weapon in it. This way, it won't be clipped by the wall. - I would add a listener on the mousemove, detect the direction between the screen center point and rotate the weapon accordingly. It does not seem easy to do! - scene.pick internally uses a raycast. 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.