calculated when it is jumping and landing