3D Platformer Camera?

Excuse my late reply, I wasn’t able to respond 'til just now.

I tried around with that for a while, but had no success unfortunately.

But I learned about line traces so I’m experimenting with that right now, and so far it’s working fairly well.

Still having a few hiccups, for example, I want the sphere (the camera’s ‘Z-anchor’ I’m calling it for now) to automatically lerp up on top of the platforms (to roughly where the sphere’s Z-center would sit in the middle of the player) if the line trace finds a “hit” with a platform below the player, and for the sphere to continue moving up/down the slopes even if the player is jumping.

I Will continue working on this, but if others have more advice or feedback on how I may fix these lesser issues I’m all ears. Thanks to everyone for taking your time to read this and offer help, btw.


EDIT: Made some more progress. It almost works exactly how I want it to now

The red sphere follows me when i walk up and down slopes as I want, and if i’m above a platform the red sphere lerps to the top of the platform approximately to where the center of my character will be. But it still jitters a bit when standing on a moving platform that moves up really fast, and it also skips up a bit when I jump up slopes, and it doesn’t move down when I jump down slopes.

My math is probably just wrong somewhere in there.