We're making some motion changes due to the nature of the game, and one of them affects jumping. Right now, it's set up to use a static variable called "JUMPBOOST". We'd like to change that to use the character's current velocity to affect his jump distance (as we have three moving speeds).
if (inputInfo->jumpDown && !_model[currentWorld]->GetAirborne())
{
jump = JUMPFORCE;
homeBaseMovement->z = homeBaseMovement->z * JUMPBOOST;
anim = Animation_type::run_jump_rise;
isJumping = true;
moveType = Move_type::jumping;
}
We've looked into using GetVelocity, but can't seem to figure what's missing to apply it properly.