Hi, I’m making a third-person game.
Shameful, but as you can see below, the character’s camera offset changed a little bit from 0 to -1.8 to the right.
[ approximately 92 line of the Poppercam module ]
function Poppercam:Update(renderDt, desiredCameraCFrame, desiredCameraFocus, cameraController)
local rotatedFocus = CFrame.new(desiredCameraFocus.p, desiredCameraCFrame.p)*CFrame.new(
- 1.8, 0, 0, -- << I changed this line 'X direction ?' to -1.8
-1, 0, 0,
0, 1, 0,
0, 0, -1
)
local extrapolation = self.focusExtrapolator:Step(renderDt, rotatedFocus)
local zoom = ZoomController.Update(renderDt, rotatedFocus, extrapolation)
return rotatedFocus * CFrame.new(0 , 0, zoom), desiredCameraFocus -- JS
end
As you can see in the video below, the problem is that the right side of the screen does not through the wall when the character is a little away from the wall, but when it is fully attached to the wall, the camera through the wall.
I looked for a topic that had similar problems with me.
So I thought I could solve the problem in "PlayerModule/CameraModule/ZoomController/Popper" and I tried to change many times, but I couldn’t.
what line do I have to change to Popper or am I wrong?