The mod adds a new camera mode to the game. You can switch to it like any other camera mode.
What does the mod do?
It automatically looks into the curve in dependency to your steering input. And if you drive backwards it looks automatically back. You can also adjust the "looking"-sensitivity with a custom settings app.
It is adviced to reload the "GameEngine Lua" with the key combination "Ctrl+L" after installation.
If you encounter any bugs, let me know in the discussion thread related to the mod.
You can now change the sensitivity of the camera by using in the gameplay options the "transition time" slider at the camera settings. -future me: "old"
View attachment 307613
After you changed the settings press numpad 5 to reload the camera and load the settings!
I adjusted the lookahead sensitivity in dependent to the speed of the car. Thanks @lord_of_the_wolves for the suggestion.
I created with this graph visualiser a graph:
On the y-axis is the sensitivity and on the x-axis is the car speed in kmh.
With this update the camera also works with the automation cars.
Changed UI-App thumbnail, fixed bug in recent version and removed leaning out of the window function.
added a new cam called "driveAhead" which uses the new internal camera script
Updated to the new Version 0.15
The camera script gets loaded from the core_camera module, but apparently the core_modloader is loading the mod after the core_camera modules was initialised and thats to late. I build a workaround with a UI app. In order to work you must add the "fixModdedCamerasNotLoading"-app to your UI. (see Update 2.2) The app can also be uses by other developers. It simply triggers a reinitilisation of the core_camera module.
Fixed an error with a nil value calculation. Added the functionality to disable ui-apps via the native "Hide in cockpit" checkbox. Also fixed a typo in a debug message. The settings app also features a checkbox to disable the reverse look feature.
Fixed settings were not saved. The settings now work on the fly.
Also added a look back function which works with the default binding.
Refactored the code for ~20% performance increase. Added a deprecation warning to old camera.
- switched from unsupported serialization functions to json coder functions
- removed old "lookAhead" camera
Fixed bug which breaks the game
Fixed bug which breaks the game (again). Unfortunately my workaround from update 1.9.1 no longer works, because a reload of the camera module triggers an error. As a quick fix I removed the "fixModdedCamerasNotLoading"-app and added a new button to the camera settings app called "init cam".
Good news, the game devs fixed the camera loading and activation logic of custom camera modes. Therefore it is now obsolete to use the "init cam" button. I left it in for now for feature releases
Also fixed the ui app.
BeamNG Team (especially meywue) - 93% of the code and advise
Me - everything that's left ^^
"LookAhead" Interior Camera 2.3
Never drive into your blind spot anymore