HI, I am trying to make my 2D character dash, but if I use, “rigidBody.velocity = Vector2.right * dashSpeed;”, it won’t work and the same thing happens if try with the left, and even if try changing the variable “dashSpeed” with actual values it won’t work. Do yo guys have any ideas?
-My jump uses Vector2.up * jumpForce, and it works fine, and in FixedUpdate my rigidBody velocity is set like this: rgdBody2D.velocity = new Vector2(movementX * MoveSpeed, rgdBody2D.velocity.y);
In FixedUpdate you are overwriting your velocity.x with movementX * MoveSpeed. It doesn’t matter what you set it to when trying to dash, because it will be overwritten