- Home /
camera follow problem,Can somebody help me about camera following
Can somebody help me i want some kind of script where camera follows ball (and game is based on roll a ball) ,Can anybody help me with camera follow i want script with only camera following i created roll a ball based game and i want someway camera can follow ball.
Answer by James_BadAlchemy · Jan 30, 2019 at 08:52 PM
If you want the camera to follow your ball, you can simply make your camera a child of the ball in the hierarchy.
If you're wanting to add smoothing, etc then you'll need to write a script.
You'll want to Vector3.Lerp from the current camera position to a target position.
Your target position will likely be the balls position + an offset to make sure the camera is consistently viewing the ball.
I'd recommend checking youtube for some tutorials. :) This is one of the first things people learn, props on coming to the right place for answers, but you've got free solutions on youtube that you can learn from at your fingertips.
I did added a child to ball and now camera falls when ball falls is there any solution for that
Hey i founded on youtube anyways thanks for tip :)
Your answer
Follow this Question
Related Questions
Smooth Camera Vertical Follow 1 Answer
Camera Follow problem D: 1 Answer
[SOLVED] Third Person Spherically Orbiting Camera 1 Answer
When Built Camera is wonky 0 Answers
Can Someone Help Please???? 1 Answer