- Home /
car tutorial' camera adjustment problem
(my question is relate from tutorials in unity resources)
The main camera target is car, but I want to change the camera view like shown as below.
I had try for different setting within the inspector of camera, but it's useless and I got no idea how to edit the C#.
My current camera projection is perspective, car camera component's script is the C# from the tutorial folder provides, and target none.
And I hope the camera could be view like so, and most important that it moves with car, please provide full script or something like that, thank you.:-| p.s. the red object is the car
Answer by rhodnius · Aug 03, 2012 at 06:32 PM
Hi,
I don't have rigth now the car tutorial handy, so i would try to help you out with what I remember.
Attached to the camera should be an script called something like CameraFollow or so, in that script should be 2 variables, one for the Height and one for the distance, set those variables values like follows:
Height = 50.0f;
Distance = 25.0f;
You can play with those 2 values to get what you want.
If that didn't help, let me know, and when i get back home i would review it and let you know how to do it.
Your answer
Follow this Question
Related Questions
Car enter and exit script not working 1 Answer
Car wheel problems 1 Answer
Wheel Collider Rotation Problem 0 Answers
Why can't I add a script to an object? 1 Answer
How to make Orthographic camera ignore window size changes? 1 Answer