Alright guys, so after a ton of waiting for a response on my previous post about my broken camera, I decided to make a third person camera from scratch. I feel this may be of aid for folks, so here ya go!
What does it allow for?
-Manages to rotate the camera with just the movement of the mouse
-Manages to move around the character, and not a static focus point
-Basic 8-Directional movement
-Easy to modify
-Camera collisions (Can be toggled)
To use, just insert in the StarterGui
Hopefully you’ll find this of use!
Any constructive criticism is appreciated, and please do alert me of any bugs!
Credits: @Arbeiters - Devising a method for a smooth 8-directional body lerp @BanTech - Providing a function crucial to camera collisions @Chrythm - Providing an idea crucial to camera collisions
It’d be nice to have some sort of initialisation where you can set whether popper cam / cutoff is enabled or not. GetLargestCutoffDistance may be of use.
When I had that problem making a camera script, it was because I was checking for what’s between the camera’s position and the player. The way you should be doing it (if you aren’t already) is by checking for what’s between where the camera should be and the player.
I’ve been working on my own over the shoulder (OTS) system (I’ll drop a link below), and it got me thinking, as someone who is really bad at CFrames, it brings a lot of ideas together nicely and really helps you both 1. Visualise it, 2. give you something you can play and experiment with.
I think you should consider writing a step by step tutorial to actually make a working OTS camera, with diagrams explaining what each stage do, and if alternatively, you were to fiddle with this number instead of that number, what cool stuff might happen. I would be happy to help proof read and structure!
I would write it myself, but I would feel like it would be the blind leading the blind - or worse the blind pepper spraying the sighted!
@DeepBlueNoSpace
Actually, I am currently working on tutorials, lol
I’ll do one on explaining OTS camera creation very soon
Also, I can’t access your system since my group spaces are full, so rip
@DevChris
Thanks! Will take that into account the next time I edit this