How to measure z-velocity on character when going up a slope

Here is a way to do it :

I want to get my camera to lead the character up/down when climbing stairs or going up slopes.

I currently lead the camera lateral-moves based on the characters xy-velocity.

However, the z-velocity will always be zero unless the character is falling.

So, question is:

  1. -How do I measure the character z-velocity when going up a slope?
  2. -Or, am I thinking about it the wrong way? Should I be measuring
    normal-angles of the ground instead?

Thanks!

I think what you want is to get the Location before and after your character moves in a frame, thhe get the delta from the z and apply that to your camera?

Thanks guys!
This’ll work :slight_smile: