Don't set a vertical velocity when on the ground

actorid
Chris Robinson 12 years ago
parent 8e59ea4941
commit 90cb9ee0ac

@ -190,7 +190,7 @@ namespace MWWorld
onground = false;
}
physicActor->setOnGround(onground);
physicActor->setVerticalForce(clippedVelocity.z - time*627.2f);
physicActor->setVerticalForce(!onground ? clippedVelocity.z - time*627.2f : 0.0f);
return newPosition;
}

Loading…
Cancel
Save