The question is answered, right answer was accepted
my 2d character isnt jumping with constant velocity on applying force
i am building a game in which the main player moves auto left right . it can move with addforce or velocity. with Addforce on applying additional up or down force to go down or up it works but it doesnt work with velocity . since its 2d rigid body 2 force modes are available Forcemode.force / impluse. none helping me out. why i need to go for velocity for left right movement, to prevent speed difference when collided with camera boundaries.
Answer by mansoor090 · Dec 07, 2018 at 08:41 AM
i got this guys, i was restricting y direction in my update function to unrestrict here is the code
rb.velocity = new Vector2 (speed, rb.velocity.y);
Follow this Question
Related Questions
rigid.velocity.x = 0 for unknow reason 0 Answers
Predicting max jump height of a force impulse 1 Answer
2D Rigidbody Velocity Being Weird 1 Answer
Using both RB Velocity and AddForce? 1 Answer