Moving Platform (Lift)

Hi,

I am trying to get a character to move with a vertical moving platform(cube).

I attached a boxcollider to the platform. I gave it a child element with another boxcollider.
This one is a bit bigger.
I use it as a trigger (if I would use the platform as trigger, the character just falls throught).

When the trigger is fired, I make my character a child of the platform.
Now it is not falling down. My problem now is, that the Collider is always calling OnTriggerExit and then again OnTriggerEnter.
I guess its because of the movement of the platform.

So I just disabled the childelements boxcollider. But now I have nothing to check, when my character leaves the platform.
Is there any solution? I searched the forum, but it seems, that there is no solution for the parenting method?

Thank you, and sorry for my bad english.

So, I used the method to check what object with what tag I am standing on.
As soon as I touch the surface, I am parented to the Lift.
When I leave it, it unparent me.

But if I jump several times on the platform (when it is moving up) I am slipping through it.
Even if I let the character beeing parented to the lift. Why is this?

My Player has a rigidbody, and the platfrom has a boxcollider and a ridgidbody…

The Unity 3D example project Angry Bots has a lift in the scene. You could take a look at that to see how Unity would make a lift.

G-Modifications