I’ve just completed this section of the course, however, I encountered an issue in the tutorial. I’ve resolved it myself, however, I’m not certain why my solution differs from Rick’s example.
Here is the code in question:
void OnCollisionEnter(Collision other)
For my OnCollisionEnter method, I receive the following error statement.
Script error: OnCollisionEnter
This message parameter has to be of type: Collision
The message will be ignored.
I noticed that some students named their own class Collision. That would cause a conflict with the already existing Collision class/type in the UnityEngine namespace. Could it be that you named one of your classes Collision?