ian Posted August 25, 2016 Share Posted August 25, 2016 I have qauestion? Is possible that it is a physics collision problem (between sphre - mesh colison connection). Ball falls throuh floor or edge every time on the same places. I mark this places with submesh-materials. And I try include scene.getPhysicsEngine().setTimeStep(1 / 100); and physics works same (on same specific places ball falls through mesh). I'm still looking for a reason why happend this. (cannon physics) Quote Link to comment Share on other sites More sharing options...
Wingnut Posted August 25, 2016 Share Posted August 25, 2016 Hi again. This question has been asked many times on the forum. Keep your mesh a bit big. No tiny mesh. It would help if you provided a playground. http://www.babylonjs-playground.com/#IGM3H#1 A little modified demo from the Physics Engine docs. Good luck! Need a "safety box"? http://www.babylonjs-playground.com/#1PEY4O#0 PS: A web search for "ball through floor" or "ball through wall" will show that this is a common problem for many physics engines. ian 1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted August 26, 2016 Share Posted August 26, 2016 Google how to do raycasting hit tests for fast moving objects as well. ian 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.