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);
}
}