- Home /
How to follow a moving object by camera on a line ?
Hi guys i want to make a camera which follows the game object on the wall. I think splines could help me with this. I implemented and let camera face to my moving game object but i want my camera to move with game object on a line. For example Fifa camera . The camera follows a line on the tribune while following the ball. Do you have any idea for this ?
Answer by Xerelin · Dec 06, 2012 at 05:21 PM
Make the camera a child of the object to be followed. Then just force it's X,Y,or Z position to the plane you're line is on.
EX: ball travels in an increasing X direction. The camera follows the X coord of the ball. If the ball travels in an increasing Z direction. The camera doesn't appear to move because it's Z is locked inside the Update function.
Your answer
Follow this Question
Related Questions
Replicate rotation of Camera 1 Answer
Object parented to MainCamera and Y Axis Question: 0 Answers
camera goes through walls n objects etc 1 Answer
Have Arms follow camera partially 0 Answers
How to make a camera follow an object 0 Answers