duchman Posted March 8, 2018 Share Posted March 8, 2018 Hi guys, Any ideas on how to make or simulate a "convex physicsImpostor".. Imagine a funnel, or an upside down cone, and a sphere dropped into it. Could this be done with Babylon and its physics? Could I go with the meshImpostor on a cone shaped mesh, or with arrays of connected meshes to form a cone..? I just dont have the idea what would be the best approach.. thnx Quote Link to comment Share on other sites More sharing options...
jerome Posted March 8, 2018 Share Posted March 8, 2018 If you're afraid to implement your own physics, you could use the FacetData feature to get every mesh facet normals : http://doc.babylonjs.com/how_to/how_to_use_facetdata and make thinks collide against it according to these normals Quote Link to comment Share on other sites More sharing options...
RaananW Posted March 8, 2018 Share Posted March 8, 2018 Hi, we don't currently support a convex impostor. It is, however, supported in cannon (http://schteppe.github.io/cannon.js/docs/classes/ConvexPolyhedron.html) , so it can be integrated manually, if you write the code to analyze it correctly. If you want it fully integrated in Babylon we can discuss what would be the best way to do that. This will require changing the cannon plugin to also support the convex impostor. Quote Link to comment Share on other sites More sharing options...
duchman Posted March 8, 2018 Author Share Posted March 8, 2018 Ok, these are inputs that can focus me, jerome, I wasnt even aware of Facet feature, and going thru some examples, it may come as fine solution with right setup, and clever juggling with its usage..RaananW, yes that would be the definite solution, so moment I fool the client with this temporary mockup, Il try to plugin Polyhedron..Guys, thanx for road signs! RaananW 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.