JustInvoke / Randomation-Vehicle-Physics

Vehicle physics system for the Unity engine.
https://justinvoke.com/game-assets/#randomation-vehicle-physics
865 stars 184 forks source link

What determines the position of the main camera ? #53

Open TheBricktop opened 3 years ago

TheBricktop commented 3 years ago

Im trying to create my own vehicle using modified prefab and so far so good car moves and steers but camera always point underneath the chassis, Ive tried modifying the parameters of height and distance but it always was either too far or too low .

JustInvoke commented 3 years ago

Make sure the cast mask on the camera control script excludes the layers that your vehicle's colliders are on, or set the layer of the colliders to be different. The included vehicles have everything on the Vehicles layer and the camera only pays attention to the Default layer.