To allow more control over the cameras I've moved the setup into car config. I've updated all cars to use the new syntax.
Code:
[camera.0]
name = foo #required
type = mount #required types: mount, chase, orbit, free
position = 0, 0, 0 #optional
lookat = 0, 1, 0 #optional used by mount only atm, determines view direction
stiffness = 0 #optional used by mount
The number of camera types could be reduced in the future, there is some not needed differentiation. Field of view could be added per camera, not sure if it is wanted?
The first six cameras are hard-wired in the gui, input handling. There is no such requirement in the code itself though.
Nightly build:
https://sourceforge.net/projects/vdrift/...%20builds/