Collision if statement

in my code i am typing code that said



and it came up with a error did i do something incorrect

Hey @Aiden_The_coder!

Please give us a bit more information on your problem. What errors are you getting and what are you trying to achieve?


I think you have to do this:

if (result && result.other.rigidbody){