Statics Posted August 14, 2015 Share Posted August 14, 2015 Hey, I've done quite a bit of improvement on my pool game since it was last posted. http://playground.babylonjs.com/#T2I6X#5 I was wondering if anyone knows a way to keep the balls from moving so much? It seems that they don't stop regardless of how long I wait. I tried messing around with the friction settings but that didn't seem to change much. Also, is there a way to make the hit detection on the holes more accurate? The balls disappear before they actually touch them in most cases. Thanks for all the help so far!! Quote Link to comment Share on other sites More sharing options...
Statics Posted August 14, 2015 Author Share Posted August 14, 2015 So I tried messing around in the debug mode, and when I turned the bounding boxes on the cue ball moved differently than the rest of the balls. The cue ball appears to slide along the ground while the rest of the balls roll around. Any idea why this is happening? Quote Link to comment Share on other sites More sharing options...
adam Posted August 14, 2015 Share Posted August 14, 2015 I played around with it a little and got the balls to slow down. You will probably need to tweak it some more. http://playground.babylonjs.com/#T2I6X#7 velThreshold = .3: http://playground.babylonjs.com/#T2I6X#8 Statics 1 Quote Link to comment Share on other sites More sharing options...
Statics Posted August 14, 2015 Author Share Posted August 14, 2015 Thanks!I actually set it to 1.5 Quote Link to comment Share on other sites More sharing options...
adam Posted August 14, 2015 Share Posted August 14, 2015 velThreshold = .2 dampAngVel = .98 http://playground.babylonjs.com/#T2I6X#9 raised the restitution of the balls a little http://playground.babylonjs.com/#T2I6X#10 jerome 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.