Tired of playing FPS styled games with your camera locked at 80 degrees meaning you cant aim straight up or down? Well I have a solution. 90 degree cameras are possible in roblox (well- 89.95 degrees to be exact) so why aren’t we using them?
High quality FPS games such as Arsenal don’t even use 90 degree cameras. If your thinking of making your own FPS engine, consider using my free Custom Camera for a better playing experience.
Well, now seriously saying, it’s an interesting mechanic to add, I’m not home to test it out for myself though.
Once I’m home I’ll add it to my game to test it out and edit this with my thoughts on how it works out.
Thanks for the contribution!
Yeahh, that’s the thing a lot of FPS styled games out of the Roblox engine don’t have the camera locked at 80 degrees. Thought creating this will advance the quality of FPS games on the Roblox engine.
so you can replace the function in the BaseCamera module in the original PlayerModule and you will be able to keep the original camera control, but you will be able to rotate the camera by 90 degrees. Replace the CalculateNewLookCFrameFromArg function with this one:
function BaseCamera:CalculateNewLookCFrameFromArg(suppliedLookVector: Vector3?, rotateInput: Vector2): CFrame
local currLookVector: Vector3 = suppliedLookVector or self:GetCameraLookVector()
local currPitch = math.asin(currLookVector.Y)
local newPitch = currPitch - rotateInput.Y
local pitchClamp = 0.999 * math.pi/2
if newPitch > pitchClamp then
newPitch = pitchClamp
elseif newPitch < -pitchClamp then
newPitch = -pitchClamp
end
local yaw = math.atan2(-currLookVector.X, -currLookVector.Z) - rotateInput.X
return CFrame.Angles(0, yaw, 0) * CFrame.Angles(newPitch, 0, 0)
end