Hey all. Currently I am making a first person camera for my vehicle system. In the chassis, the vehicle seat is in the middle of the vehicle, which means the camera in first person is also in the middle. Now I have tried to fix this myself my using CFrame to move the camera to the right and up a little bit. But that seems to behave weirdly when rotating the camera as it pivots around the origin of the VehicleSeat. How do I correctly offset the camera side ways without moving the VehicleSeat?
Here is my current attempt at trying to offset the camera:
local function UpdateCamera()
local OffsetCFrame = Camera.CFrame * CFrame.new(CameraOffset.X, 0, CameraOffset.Z)
Camera.CFrame = OffsetCFrame + Vector3.new(0, CameraOffset.Y, 0)
end