#'Screen position out of view frustum' when jumping

1 messages · Page 1 of 1 (latest)

lost hemlock
#

So when i press the space key to jump my player controller shoots up into the sky and I'm not sure why and I get the below error

UnityEngine.SendMouseEvents:DoSendMouseEvents (int)```


This is my code, any help would be appreciated! I'm guessing it has to do with this part:
    //applies gravity
   
    moveInput.y = yStore;
    moveInput.y += Physics.gravity.y * gravityModifier * Time.deltaTime;
    
    if (charCon.isGrounded)
    {
        moveInput.y = Physics.gravity.y * gravityModifier * Time.deltaTime;
    }
   

    //checks if we have anything with layer GROUND that's detected and then return that bool value
    canJump = Physics.OverlapSphere(groundCheckPoint.position, .25f, whatIsGround).Length > 0;


    //handle jumping
    if (Input.GetKeyDown(KeyCode.Space) && canJump)
    {
        moveInput.y = jumpPower;
    }
glacial hull
#

[]cb