Physics problem with collision

Hi i have a problem with my collision script. The script is rather simple, im using the OnCollisionEnter function on my platforms and i am using unity default gravity on my character. When the platform are going in the same direction that my character is going, (ex: my character is falling on a platform that follow an up and down path and that is currently going down, he will bounce off. But if the platform is going up and my character is falling down he will stick properly. I have tried setting a print command in my collision function to tell me if he get into contact with my platform but no, it seems he doesn’t detect any collision. Do somebody have an idea what is going on? Thanks

I had a similar problem that I fixed by putting the OnCollisionEnter script on the cylinder instead of the character.

I hope it helps!