- Home /
How to have Multiple Camera Positions with SmoothFollow.js ?
Hey guys,
I'm using the SmoothFollow.js for my main camera. I would like to have 3 different camera positions depending on what my character is doing.
I would also like to have camera make a smooth transition for each position.
What's the best way to do this?
Should I have multiple camera targets, or have different positions for the camera to transition to?
How would you go about having the camera transition?
Thanks in advance!
Answer by Fornoreason1000 · May 18, 2013 at 11:41 PM
I would have a number of game objects or even transform variables to tell the camera where to go. For moving the can is self you could use slerp and lerp to get it to that point. to make the camera change position have a function that takes an int or enum to determine which point it's going to. Then do the translation editing in there based on your input.