I’m having some issues with a certain use case when two objects touch on screen, but do not “collide”.
The scenario is, that the bottom of the screen has shapes. When i click on the shape and drag, it generates a new shape and follows the mouse cursor, while following the mouse, the rigidbody is set to kinematic. When the shape is let go, i turn on gravity to make it drop to the bottom of the screen hitting a floor surface. When it reaches resting point, i turn it back to kinematic so that it stays in that position.
The problem arises when i create another object and try to drag it into the object on the floor. For some reason it doesn’t detect collisions between these two objects. However. If i drag two objects simultaneously and make them touch their OnCollisionEnter scripts get fired.
Is there a limitation i am overlooking? Can two kinematic objects not collide?
Cheers
Thank you for that comment :D I was going crazy with this problem and noticed that I wrote "onCollisionEnter" instead of "OnCollisionEnter". Thank you thank you thank you!
– pmfrdiasthanks for this. lol i have been programming off and on since 1986 and i still managed to mess this up. So used to python, C++, etc, where method names almost never start with capital letters.
– donbrightThank you this helped <3
– bence0302bence