can't make 2d ball jump on the same distance every time
hello !
I can't make 2d ball jump on the same distance every time. I don't want it to have bounciness , in my script when i click mouse button it jumps normally but when I play game on phone ball jumping way to high.
void FixedUpdate ()
{
if (CanJump == true ) {
if (Input.GetMouseButtonDown (0))
{
rb.velocity = new Vector2 (rb.velocity.x + speed,rb.velocity.y + JumpForce);
}
}
}
btw I tried addForse as well what can i do ?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612111441im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
how can i make my player jump to fixed position contenously 0 Answers
addforce the force keeps on adding. 0 Answers
How to structure different types of 2D jump logic? 1 Answer
Best solution for 100% accurate jumps. 0 Answers
[solved] Prevent object with Rigidbody2D being moved by objects it collides with? 1 Answer