the jump animation is not working. animator didn’t trigger..
i do have jump physics work but no animal and animator show Jump not trigger.
bool isJumping = false;
int isJumpingHash;
bool isJumpAnimating = false;
isWalkingHash = Animator.StringToHash(“isWalking”);
isRunningHash = Animator.StringToHash(“isRunning”);
isJumpingHash = Animator.StringToHash(“isJumping”);
void handleJump()
{
if (!isJumping && characterController.isGrounded && isJumpPressed)
{
animator.SetBool(isRunningHash,true);
isJumpAnimating = true;
isJumping = true;
currentMovement.y = initialJumpVelocity * .5f;
currentRunMovement.y = initialJumpVelocity * .5f;
} else if (!isJumpPressed && isJumping && characterController.isGrounded)
{
isJumping = false;
}
}
so when i jump animator should be true not is didn’t trigger.
where i did wrong?