SterlingRunion Posted May 31, 2018 Share Posted May 31, 2018 I noticed a bug this morning in the physics due to using Babylon.js instead of Babylon.max.js that I use for development. I was out of sync on these 2 files. http://www.sterlingrunion.com/Bowling/Index Wingnut and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted June 12, 2018 Share Posted June 12, 2018 Hey, nicely done. Works in my IE, but Firefox ESR reports 'event is not defined'. window.onload = function () { event.preventDefault(); <== SetMainBodyClass('adjust-body-content', false); I'm not sure, but maybe... window.onload = function (event) { *shrug* Also, do you know about adjusting the physics engine step speed? scene.getPhysicsEngine().setTimeStep(1 / 20); (insert this line AFTER activating physics engine, of course). This might speed-up the pin-flying speeds. Play with the values, as wanted. I think 1/60 is the default. Thanks for the cool bowling game! Quote Link to comment Share on other sites More sharing options...
SterlingRunion Posted June 18, 2018 Author Share Posted June 18, 2018 Hey Wingnut thanks for the reply. I did not know about setTimeStep but will give it a try. Yeah the pins do kind of float around a bit lol! Quote Link to comment Share on other sites More sharing options...
SterlingRunion Posted June 18, 2018 Author Share Posted June 18, 2018 Seems to help thanks for the tip! 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.