1. Stuck, Having problems with creating your mod? Let us help you: Mod Support

Camera controlled by steering?

Discussion in 'Programming' started by shiznit, Jul 24, 2017.

  1. shiznit

    shiznit
    Expand Collapse

    Joined:
    Nov 2, 2015
    Messages:
    3
    I play in cockpit view most of the time. Is it possible to script something that rotates the camera a tiny bit when steering left or right and recenters when steering wheel is centered?
     
    • Agree Agree x 3
  2. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,112
    You could just use the 4 and 6 keys to rotate the camera, usually when you need to turn your view it's at a stop sign or traffic light.

    But I'm surprised this isn't already an official feature, even Live For Speed has something similar and content updates over there take literally a decade or more.
     
  3. DuneWulff

    DuneWulff
    Expand Collapse

    Joined:
    Apr 25, 2016
    Messages:
    727
    That is actually a great idea. Camera leans towards the direction the wheel is turned. I can't imagine it would be too terribly difficult to code into place... and I suppose it could always be turned off if it was undesirable.
     
    • Agree Agree x 1
  4. Neo

    Neo
    Expand Collapse

    Joined:
    Oct 31, 2015
    Messages:
    207
    Really great Idea... I really have to start lua modding
    --- Post updated ---
    @shiznit:
    I made a quick Ui-App as transitional solution. The script is pretty limited, because it is written in Javascript. You will notice some clamping effect when the camera re-centers. That is because JS-Scripts are limited to 30 fps (as far I know) and I only use the built in camera rotation function that @gigawert mentioned. I have to learn how lua works in BeamNG, then I could do it better.

    Install it like any other Mod (explanation). Ingame it looks like that in the App-Selector:
    Unbenannt23.png
     

    Attached Files:

    • Like Like x 1
  5. Neo

    Neo
    Expand Collapse

    Joined:
    Oct 31, 2015
    Messages:
    207
  6. Neo

    Neo
    Expand Collapse

    Joined:
    Oct 31, 2015
    Messages:
    207
    Ok I´m proud to announce that I finished just now. It turns out that it is a standalone camera mode :)
    I will upload it to the Repo when I´m done with the fine tuning.
    Install it like any other mod (explanation above). Don´t forget to restart your game after installation!

    //edit: https://www.beamng.com/resources/lookahead-interior-camera.2593/
     

    Attached Files:

    #6 Neo, Jul 27, 2017
    Last edited: Jul 28, 2017
  7. Dean Wang

    Dean Wang
    Expand Collapse

    Joined:
    Sep 22, 2016
    Messages:
    1,522
    chase cam
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice