Question by
abhishekaggarwal896 · Jun 17, 2021 at 10:54 AM ·
rigidbody2dvelocityplayer movement
Object not moving even after having velocity
I have made a game whereas i am changing the body velocity through script and printing the velocity on console. Now as you can see, console is printing that x component of velocity is non zero, still the character is not moving along x, the print command print direction and velocity, direction is fine . Velocity is also fine but the position is not changing.
as you can see velocity along x is -2 but the character is stuck at the same point, I can add the gameplay as well if that helps.
2021-06-17-4.png
(167.7 kB)
2021-06-17-3.png
(41.2 kB)
Comment
Your answer
Follow this Question
Related Questions
2D player slower on ground than in air 1 Answer
Unity Rigidbody2D bug 0 Answers
Collision detection for the next frame 1 Answer
rigidbody2D's velocity not working 1 Answer