In my game I want the player to be forced back 50 units smoothly if he hits an obstacle.
Currently, the only thing that works is the Player.transform.Translate line I have, but that instantly teleports the player and is quite disorienting.
My player has both a Character Controller and Rigidbody attached, so the Rigidbody.addforce command won’t work.
If someone could help me with a LERP command, I’d be grateful. I currently have one line that throws up many errors.
Player.transform.Translate = Vector3.Lerp(Player.transform.position, Player.transform.position-50,t);
Thanks for reading!