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
  • Camera:
  • carBrakeGlow:
  • bikeBrakeGlow:
  1. Fine Tuning your vehicle

Utilizing offsets

PreviousTuning your vehicleNextLearning the exports

You will find it easier to edit the offsets Press F1 to activate it once installed, and navigate to "Brake Exports" to enable brake debug mode.

While most of dynamic vehicleData.lua fields and components are created via scripts/tools, there still are 3 main fields that are meant for manual offsetting. With then being:

Camera:

Inside the camera offset, you'll be able to predetermine Y and Z offsets for both chase and FPV cam in the vehicle.

Fields:

            chaseCamYOffset = 0, -- Y Offset for the chase camera
            chaseCamZOffset = 0, -- Z Offset for the chase camera
            fpvCamYOffset = 0, -- Y Offset for the FPV camera
            fpvCamZOffset = 0, -- Z Offset for the FPV camera

carBrakeGlow:

This component is responsible for setting the brake glow VFX configuration for the specified vehicle.

Fields:

            carGlowBrakeXOffset = -0.0075, -- Offset on the X axis for the effect
            glowBrakeRadius = 0.5, -- Radius of the brake discs

bikeBrakeGlow:

This component is responsible for setting the brake glow VFX configuration for the specified vehicle, if it is a motorcycle. In motorcyles, since we can have 2 discs per wheel, and they're visibile in both sides, we introduce 2 news offset fields, spacing & width. The width, represents the disc brake width, usually arround 0.01. The spacing represents the distance from the left or right brake disc, depending on how you setup the "bikeGlowBrakeFrontOffset" and your bike 3d model. Treat it as a mirror from that setup, if you enabled "usesDualDiskFrontBrake". Else it will not be used and you may set it to 0. Fields:

            bikeGlowBrakeFrontSpacing = 0, -- Already mentioned above.
            brakeDiskSettings = {
                bikeGlowBrakeFrontDiskWidth = 0, -- Already mentioned above.
                bikeGlowBrakeFrontOffset = 0, -- The X offset of the first or only disc on the front bike wheel.
                bikeGlowBrakeFrontRadius = 0, -- Radius of the brake discs
                bikeGlowBrakeRearDiskWidth = 0, -- Already mentioned above.
                bikeGlowBrakeRearOffset = 0,  -- The X offset of rear brake disc on the bike.
                bikeGlowBrakeRearRadius = 0, -- Radius of the brake discs
            },
            usesDualDiskFrontBrake = false, -- Flag this as true if you bake use 2 discs at front.
utilising the exports demonstration menu