Having the worst time making OnCollision work... Strange.
No idea what im missing but I seem to be completely unable to produce collisions whatsoever. I have this simple scene where a capsule drops from above with gravity and strikes a cube suspended by zero gravity. The capsule falls, strikes the cube and both go sailing away. For whatever reason I cannot trigger Debug.Log for any of it.
Between different attempts, (for the capsule, cube, rigidbody and collider components, and OnCollision/Trigger) I have tried using physics, physics2d, tried script on every item in scene, tried IsTrigger on all the objects, theyre all in the same layer... Really not sure.
Your answer
Follow this Question
Related Questions
Ignore collision based on position 1 Answer
ontriggerexit not working 0 Answers
Collision between objects not being detected 0 Answers
How to change the color of an object when it collides with another object? 2 Answers
Colliders for tunnels 0 Answers