16-10-2022, 04:09 PM
I found a problem.
1)In Solver_OnCollision() method both "for" and "foreach" methods are not working. So I cannot retrieve every contact info one by one to compare if they are actual collision contacts.
2)How did I found out? Simple I both in debugging mode and not in debugging mode the traversing through code is failing. The system directly jumps through end when it sees a for or foreach. Also "There is a contact" text never seen.
At first I thought maybe its a bug because IDE so I closed debugging and added debug.logs. Even after there is nothing.
3)So I just wanted to take the first contact info. When I used _contacts[0].bodyB it shows the collider of collided object which is the thing I wanted at first. So I thought my problem was solved. As you can see it is not. Why simple I can't compare every particles contact info without any loop.
And much more importantly even if I can do that, the contact info is generated without even a ball or any object touches it. How can I detect objects? The code and ball photo took at the same time.
Please someone help me. I read 10 page of obirope forum and 5 pages of obi general forums, also I readed everything about collisions and basics so far. But it is not working.