Hey Guys,
I know that there is a lot of question of adding force versus velocity changes, but I’m using the Rigidbody2D from 4.3 version and I have a problem in my jump. For example, I give an initial force to my rigidbody, than if the player hold the button, I add like a small up force each 0.1 seconds. My problem is that The jump curve is not perfect because Each time that I add force, I can see that It makes a little peak in the curve. I was like, I could add less force each time, but if I dont add that much force, I don’t see a difference. Then I began investigating modifying velocity directly. I’m still not sure of what is the difference between mRigidyBoddy.AddForce(Vector2.up * 10) and mRigidBody.velocity = mRigidBody.velocity + Vector2.up *10;. If some one could explain the difference clearly that would be great. Also, to fix my jump problem, I saw that in the normal rigidbody class, there was an AddRelativeForce, I don’t know if it is the key to my problem. Does anybody has an idea ?
Thanks a lot for your time and have a good day
Claude