Hi all. I’m reading and trying to make sense of the raycast documentation:
Like all other docs, it mentions the function name, parameters, returns and description.
And then it just goes straight on and lists another three entire sets of parameters, returns, and descriptions, without naming any new function.
I’m trying to gel this with what i generally know about object oriented programming, and it just feels wrong.
Like the first one takes origin, direction, distance, and layermask
But then the second function takes Origin, direction, distance, hitInfo, and layermask.
How is that possible ? how does it not just throw a compiler error because you passed it a RaycastHit when it was expecting a LayerMask?
Can someone please explain this like i’m a student?