Utilizing offsets
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.