why is my player floating, twitching and can almost not go up a ramp
so im learning c# for unity and i made a (very) litle scene to test my first person controls i made. but the wierd thing is that the gravity is acting wierd. ill send a video and the code i use.
6 Replies
What would happen if you don't try setting the velocity property of the rigidbody directly?
In
Jump()
, you are using the AddForce()
method to change the velocity of rb
In Move()
, you are updating the velocity directlyUnity Discussions
Player falls slowly like a feather
Hello everyone! I’m working on a 2D game wherein there is involvement of slopes. Now, within the case of jumping, the player jumps, reaches a height but falls back slowly like a feather. Similar behavior is seen in the case of player movement as well, when player moves, and at the time of falling, it falls down slowly. Note:- I’m using apply ...
thank you. its late for me so i cant read this now but in
Move()
ive already tryed to change the rb.velocity =...
to rb.AddForce(...)
but none of the setings gave me what i wanted. i gues ill try tomorow. thank you anyways!Sure thing!
Try this when you have time:
thank you for the help! but i fixed it myself. i just had to add a "isGrounded" bool to see if i am tuching the gound. thanks anyways
Good! Good luck