Camera Movement slowed by walking, when using controller

I have a custom third person camera using the position of Thumbstick2.

For some reason, when moving the character, the camera slows down. When the character isn’t moving, the camera speed increases to normal. I also tested just turning the thumbstick and moving the character with the keyboard and still had the same issue. When removing the default CameraModule from their StarterPlayerScripts, it makes the slowed camera movement when moving go away, but i lose control of their character. I had to test this by moving the character with scripts.

function tps:gamePadInput(actionName, inputState, inputObject)
	if self.Data.playerStats and self.Data.playerStats.settings and not self.Data.inGearWheel then
		local sensitivity = (self.Data.playerStats.settings.sensitivity) 
		
		if self.Aiming then
			sensitivity = sensitivity*(self.Data.playerStats.settings.aimsensitivity or 1) 
		end
		
		sensitivity = sensitivity * 2
		
		if inputObject.Position.X < -0.1 or inputObject.Position.X > 0.1  then -- stick drift--
			self.gPad.X = inputObject.Position.X * sensitivity
			print(self.gPad.X)
		else
			self.gPad.X = 0
		end
		if inputObject.Position.Y < -0.1 or inputObject.Position.Y > 0.1  then -- stick drift--
			self.gPad.Y = inputObject.Position.Y * sensitivity --* 0.4
		else
			self.gPad.Y = 0 
		end
	end
end

My best guess is that the slower camera movement is from the speed of the walking. If the camera is set to move 24 studs per second, and the player moves at 16 studs per second, the camera would then only move at 6 studs per second due to having to compensate the players movement.

I’ve been just deving so much i never test the game online, it appears to be a studio only issue so likely an actual bug.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.