U shaped platform. Rotate player

i have a U shaped platform where i want my player to slide down and then back up. This i can do. But the problem is i want to payer to rotate according the the curve of the U shaped platform. Im not using a character controller.

any ideas?

i’ve tried this so far but no use.

function OnTriggerStay(col:Collider)
{
	if( col.tag == "angledObject" )
	{
		playerTransform.rotation = Quaternion.Slerp(playerTransform.rotation, col.transform.rotation, 100);		
	}
}

If you use OnCollisionEnter instead of Trigger, you have access to the Collision variable, then the contacts, then the normal. Set playerTransform.up to that last value. Note that your pivot must be at you’re character’s feet.