in my code i am typing code that said
…
if(result.other.rigidbody){
}
…
and it came up with a error did i do something incorrect
in my code i am typing code that said
…
if(result.other.rigidbody){
}
…
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){
}