Hi! I've been testing a simple collision detection between a flattened capsule and a kinematic cube scaled to become some sort of platform.
I first used the default collider that came along with the capsule when I created the game object. I put in print() methods just so I'd know that the OnCollisionEnter and OnCollisionExit methods are called when the capsule hits the platform. For controls, I put in a basic AddForce to the capsule's Y-axis whenever the jump button is pressed. When running the code, I noticed that the OnCollisionEnter is called only once when the capsule hits the platform. After adding Y force (the OnCollisionExit is called) and allowing the capsule to drop down back to the platform, the OnCollisionEnter method isn't called anymore, no matter how many times I propel the capsule and allow it to land on the platform again.
I then turned to RaycastCollider, setting it to be a trigger, but similar to the collider I used earlier, it calls OnTriggerEnter once, and upon leaving the platform, it calls OnTriggerExit, then nothing else, even after a series of capsule jumps.
Any ideas what I may be missing in my setup? I tried adding and removing a rigidbody to the platform also, but no dice. Any help would be greatly appreciated. Thanks!