jellix Posted January 5, 2017 Share Posted January 5, 2017 Hi, a collision with a cylindrical imposter is only triggered when my "bullet" hits the outer surface of the impostor. But my bullet should collide on the inside of the cylinder. I've used "flipFaces()" with the mesh that the impostor is used on without an effect. ... is my question clear so far? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted January 6, 2017 Share Posted January 6, 2017 Hi Jelix You can get that with a CannonJS meshImpostor, but might not be possible with a cylinderImpostor. http://www.babylonjs-playground.com/#1YOCO9#34 AND, only spheres collide with CannonJS meshImpostors. Others may comment and have better ideas. Notice the setPhysicsState on a setEnabled(false) cylinder? Notice that when you enable 'cyl', you can't see it... thru the wireframe cyl2 (even though the wireframe cyl2 is scaled larger)? It's all part of the magic... of BJS Quote Link to comment Share on other sites More sharing options...
jellix Posted January 6, 2017 Author Share Posted January 6, 2017 Hi Wingnut, thanks for that. In my case it seems like it might be the best to develp a special engine on my own. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted January 6, 2017 Share Posted January 6, 2017 You can use bouding box states for this as well to see if an object is contained. Also I'm not sure but I think if you flip the.l normals of the object it should treat it like a container. Don't quote me on that though. 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.