I’m trying to make a camera that is similar to Temple Run in which it always stays a certain distance behind the player at a certain distance but I also want it to not make the person playing sick when the box that I’m using as a player goes flying when it hits an obstacle. The video I was essentially copied from didn’t really workout and kept giving errors which I don’t know enough about programming to understand yet. Any simple/efficient ways to code this?
Hi and welcome.
To have a camera some set distance behind some other object, you can simply have a script update the camera position to the other objects position, plus some offset. To stop this from happening in certain situations (for example when the player flies off when dying), you can introduce some bool which must be true for the camera following to happen.