Custom orbit camera

Discussion in 'Programming' started by dvigatel, Jun 18, 2022.

  1. dvigatel

    Expand Collapse

    Nov 13, 2014
    BeamNG has excellent car physics.
    But here you don’t feel the drive, the cinematography when viewed from a third person.
    For example, in GTAV, when turning the car, the camera rotates in two axes - along the Z (this is the orbit) and along the Y-axis (this is the tilt of the camera relative to the horizon).
    BeamNG has several cameras. The Orbit camera always follows the car and rotates only along the Z axis.
    Chase's camera doesn't pan much in the Z-axis, but it almost always follows the car in the Y-axis.
    I edited orbit.lua and chase.lua at \lua\ge\extensions\core\cameraModes\.
    By changing different values, I achieved changes in the game, but it was not possible to turn on the slope along the Y axis - I don't know how to do it.
    Please, who knows, write a piece of code here to add a parameter for tilting the camera along the Y axis.
  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