Hey guys.
I’m basically trying to recreate those Excursion Funnels that are in Portal 2 - those blue and orange zones that you kind of ride in (check the link and you’ll know what I’m talking about!).
While in those funnels, you defy gravity and are pushed in the direction of the funnel.
In addition to this, the player also kind of lerps in TOWARDS THE CENTER of the funnel itself. So, if it is a horizontal funnel, the player’s Y and X position will always be in the center, while the funnel pushes them into the Z axis.
This is my funnel “zone” in the game.
It is a simple Trigger area with a particle system at the bottom. When I enter the zone, I switch the gravity off of the player and move his rigidbody in the direction of the zone’s transform.up. This works almost perfectly - no matter what direction this is rotated.
However, I am unable to lerp the player towards the center of the funnel. I seriously have no idea how.
In the image shown above, the player would lerp his XZ position while being pushed in the Y direction. I can hard code this, of course… but how do I make this work regardless of the rotation?
I am stumped and would love some help and feedback! Cheers!
