Basic Collision Set up

So, I’m having trouble implementing Triggered Collisions using the documentation on Collisions Rigidbodies. To solve this I’m thinking of making two boxes and colliding them in someway. If I can get them to trigger a function call, then I should be able to figure out my problem. What components/options do two boxes need in order for a collision to trigger a function call when they hit each other? Also, what is that function and how should I move them in order to detect the collision?

I get that this seems straightforward, but I’ve tried what the API suggests in virtually every configuration of kinematic/trigger/static/etc and gotten nothing. Thank you for any help :smile:

You can detect a collision between two rigidbody objects by adding an OnCollisionEnter function to either or both of the scripts on these objects. The function will get called on the frame where the collision occurs and pass information about the nature of the collision in the Collision parameter.