dbawel Posted October 18, 2016 Author Share Posted October 18, 2016 @adam - Yes, I corrected the applyImpule vector. But if you're patient and wait a couple of minutes, you'll see most of the spheres eventually settle on the borders and corners - whereas this doesn't occur using cannon. Changing the WORLD.SCALE is a dramatic improvement. However, my current project is to replicate human biological cells moving in a space which requires that all cells maintain a constant impulse, and cannot gather on the border collision objects. With a restitution of 1 or higher on all objects (and no friction), this should be the case in Oimo, as it works fine in cannon and the objects never settle - especially on the borders. http://www.babylonjs-playground.com/#1MJ09V#12 Thanks for making progress on this, and I'm sure it can be solved in Oimo. Cheers, DB Quote Link to comment Share on other sites More sharing options...
adam Posted October 18, 2016 Share Posted October 18, 2016 I think I might have it: http://www.babylonjs-playground.com/#1MJ09V#14 restitution is set to 1 and friction is set to 0 for all bodies. dbawel 1 Quote Link to comment Share on other sites More sharing options...
adam Posted October 18, 2016 Share Posted October 18, 2016 4 hours ago, fenomas said: Probably ought to be added to the default oimo BJS plugin? I just submitted a PR. fenomas 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 18, 2016 Share Posted October 18, 2016 And I've just validated it thanks a lot adam 1 Quote Link to comment Share on other sites More sharing options...
dbawel Posted October 19, 2016 Author Share Posted October 19, 2016 @adam - I believe you have done it! I have been declaring friction in so many tests, but haven't sice you declared adjustments to the physics engine, I will be implimenting Oimo back into my scene, and benchmark 800 meshes (300,000 polys) to see if I cn improve the fps - even thogh I have it working at 50 -60fps now. But I like the behavior using Oimo much better. Thank you very much for putting your time and effort into this, as I might expect it to be of value to many users. Cheers, DB Quote Link to comment Share on other sites More sharing options...
fenomas Posted October 19, 2016 Share Posted October 19, 2016 6 hours ago, adam said: I just submitted a PR. You rock for tracking this down! I'm still really surprised that such a small scaling factor would make such a big difference. I guess oimo is more sensitive to such things than other engines I've worked with. 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.