Dynamic Engine
  • Starting your engine
    • Introducing Dynamic
    • The simulation
    • The network
  • Your first drive
    • Setting the script
    • Creating a Dynamic vehicle profile
    • Editing a Dynamic vehicle profile
    • Migrating from C.H.A.S.E.R
  • Fine Tuning your vehicle
    • Adapting your NUI
    • Editing the engine
    • Creating engine swap profiles
    • Creating a transmission data
    • Creating tyre profiles
    • Creating a new camera
    • Tweaking HUD
    • Setting Up Performance Index
    • Tuning your vehicle
    • Utilizing offsets
  • Exports
    • Learning the exports
    • Brake Exports
      • getBrakeTemp
      • toggleBrakeDebug
      • setBrakeTemp
  • Caller Exports
    • stopDynamic
    • startDynamic
  • Camera Exports
    • getCameraData
    • getCameraAmmount
    • startCamera
    • swapCamera
    • stopCamera
    • setCurrentCameraPitchOffset
    • setCurrentCameraFovOffset
    • setCurrentCameraSpacingOffset
    • setCurrentFpvCameraSpacingOffset
    • toggleBikeYawCorrection
  • Differential Exports
    • getIsVehicleCurrentlyDrifting
    • getIsVehicleCurrentlyDriftingThrottleLess
  • Drivetrain Exports
    • setFrontTorqueDist
  • Ecu Exports
    • setCurrentVehicleTcsLevel
    • toggleTcs
    • toggleEsc
    • getAssists
    • getTelemetryData
    • getGlobalTelemetryData
    • getWheelData
    • getVehicleData
    • getAvailableTyres
    • getTyreData
    • getAvailableEngineSwaps
    • getEngineData
  • Performance Index Exports
    • getPerformanceIndex
    • getPerformanceIndexCalibrationMetrics
  • Transmission Exports
    • getTopSpeedTable
    • getTopSpeedTableFromTransmissionData
    • setTransmissionMode
    • getTransmissionMode
  • Tuning Exports
    • loadTunedSetup
  • Tyre Exports
    • warmTyre
  • From enthusiasts to everyone
    • With Passion.
Powered by GitBook
On this page
  1. Camera Exports

setCurrentCameraPitchOffset

setCurrentCameraPitchOffset (accPitchOffset [Float] , coastPitchOffset [Float] , brakePitchOffset [Float] , idlePitchOffset [Float] )

Sets an offset for all camera pitchs, if you wish to use it to only a specific offset, parse the others as 0.

        inputContextButton(
            "Acceleration Pitch: ",
            "Acceleration Pitch",
            "Controls how much the camera looks up when accelerating.",
            0, 10, -10, 0.05,
            camAccPitchOffset,
            function(val)
                camAccPitchOffset = val
                dynamic:setCurrentCameraPitchOffset(camAccPitchOffset, camCoastPitchOffset, camBrakePitchOffset, camIdlePitchOffset)
            end
        )

        inputContextButton(
            "Coasting Pitch: ",
            "Coasting Pitch",
            "Controls how much the camera looks up when coasting.",
            0, 10, -10, 0.05,
            camCoastPitchOffset,
            function(val)
                camCoastPitchOffset = val
                dynamic:setCurrentCameraPitchOffset(camAccPitchOffset, camCoastPitchOffset, camBrakePitchOffset, camIdlePitchOffset)
            end
        )

        inputContextButton(
            "Braking Pitch: ",
            "Braking Pitch",
            "Controls how much the camera looks down when braking.",
            0, 10, -10, 0.05,
            camBrakePitchOffset,
            function(val)
                camBrakePitchOffset = val
                dynamic:setCurrentCameraPitchOffset(camAccPitchOffset, camCoastPitchOffset, camBrakePitchOffset, camIdlePitchOffset)
            end
        )

        inputContextButton(
            "Idle Pitch: ",
            "Idle Pitch", 0.05,
            "Controls how much the camera looks down when idling.",
            0, 10, -10,
            camIdlePitchOffset,
            function(val)
                camIdlePitchOffset = val
                dynamic:setCurrentCameraPitchOffset(camAccPitchOffset, camCoastPitchOffset, camBrakePitchOffset, camIdlePitchOffset)
            end
        )
PreviousstopCameraNextsetCurrentCameraFovOffset