Wasyl Posted February 18, 2016 Share Posted February 18, 2016 Hi, I have a problem with Ninja physics when I adding a group with sprite in my game. I read on this forum, that Ninja doesn't support group collision, but mayby something was changed withing the last year, because in my it work, but not that what I expected. http://codepen.io/DonWasyl/pen/BjEeBL What could be the cause this "bullet time" effect? Without group everything was ok. Can I use any trick for repair that? Link to comment Share on other sites More sharing options...
fillmoreb Posted February 18, 2016 Share Posted February 18, 2016 I did this with your code: http://codepen.io/anon/pen/gPJpKm And got rid of the bullet time. I basically still use the groups for grouping things, but enabled the physics bodies and collisions manually, by looping through the group's children array. The thing causing the bullet time is colliding a box with itself. Remove the line: if(i == j) continue; In my code to see it happen. When you collide the group against itself, it doesn't do that check, so you get the slowdown. drhayes 1 Link to comment Share on other sites More sharing options...
Wasyl Posted February 19, 2016 Author Share Posted February 19, 2016 Thank you very much! Now works perfectly <3 Link to comment Share on other sites More sharing options...
Recommended Posts