function OnCollisionStay(collisionInfo : other)
{
}
?
I thought the “other” would be assigned the info (collisionInfo: gameObject, collider, rigidbody, transform, relativeVelocity and contacts) as soon as the object with that script hits another object with a rigidbody/collider?
No, you have to define the type, as shown in the docs.
It is, but that’s something that happens at runtime, so it doesn’t help at all when the script is compiled. You must always define the type for variables, either explicitly, or implicitly by supplying a value. But you can’t supply a value for function parameters, so the only option is to declare the type explicitly.