Herbert Posted October 12, 2017 Share Posted October 12, 2017 Hello guys, So I have two meshes with physicsImpostor, I want them to ignore each other(no collision, just go through), but still behave normally with other physic objects. How can I do that? Quote Link to comment Share on other sites More sharing options...
brianzinn Posted October 12, 2017 Share Posted October 12, 2017 If you are using cannonjs - it has collision filters? (https://github.com/schteppe/cannon.js/blob/master/demos/collisionFilter.html). if you go with that you are going to be locked into one physics engine. Herbert 1 Quote Link to comment Share on other sites More sharing options...
adam Posted October 12, 2017 Share Posted October 12, 2017 OIMO does it like this: https://github.com/lo-th/Oimo.js/blob/gh-pages/examples/test_collision.html#L209 You can edit shape.collidesWith and shape.belongsTo in an oimo rigidbody: https://github.com/lo-th/Oimo.js/blob/gh-pages/src/shape/Shape.js#L68 Herbert and zeus2198 2 Quote Link to comment Share on other sites More sharing options...
Herbert Posted October 13, 2017 Author Share Posted October 13, 2017 Thank you guys, I get exactly what I want Wingnut 1 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.