ProjectBorealis / PBCharacterMovement

HL2-style, classic FPS movement for Unreal Engine implemented in C++
https://www.projectborealis.com/movement
MIT License
1.27k stars 163 forks source link

Incorrect Mass? #1

Closed thebeardphantom closed 5 years ago

thebeardphantom commented 5 years ago

I’m not super familiar with UE4, but in your movement code you specify Gordon’s weight as such:

Mass = 65.77f; // Gordon is 145lbs

Except that’s not weight, it’s mass. Since weight is mass • gravity that would make Gordon 1431 lbs, assuming that you’re using UE4’s default earth gravity of 9.87.

mastercoms commented 5 years ago

Weight (or force) in metric units is Newtons, not kilograms. The conversion was made from pounds to kilograms, so the inverse would still have the same result, not 1431lbs.