I'm developing a game where there is a ball (dynamic object) and some static object randomly moving around the world (manually moved through y and x by a timer). As obvious the ball moving collide with these object and here all as expected and when the ball collide with an static object this change direction to move. However I would to find a way to avoid these static object to overlap in case of "collision" between them. I know static object doesn't collide with other static object and this is my problem. Sine I'm not expert in box2d someone can suggest me a way to avoid overlapping? In pratical it would mean give to the static object the "ability" to detect if there is a collision with similar static object and react in the same way of ball collision. Switch static object to dynamic have the consequence the object will react to collison on force and this is not what I want. The ball must collide like with a wall and the object just change direction.
Hope to explained well my problem.
Here's the place to get help and discuss features. The focus is on the C++ version, but generic questions are welcome.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests