Hi I’m making a endless runner/Temple run type game. My only problem so far is that the faster he’s going, The longer he jumps(The character speeds up as he gets farther).
What can I do about this? Im using rigidbody for Jumping.
1 Answer
1Can I see your script for this, I cant get much information from this.
Are you using the AddForce method? If so, what parameters are you sending to it?
– hdgam3rCould you give me an example please @Huacanacha
– MattTheProgrammerIt would be great if you could include some of your code with the question, so we can see exactly what needs to be done.
– Professor_SnakeJust get the velocity of your player by rigidbody.velocity.magnitude and calculate your desired speed at a point and make a if statement. If velocity is greater than your desired speed add a drag to your player or add a counter force. Hope this helps
– ozturkcompanyFirstly, have you tried other forcemodes for jumpvelocity and gravity? Also, you have AddForce calls in Update(). This is probably not a good idea.
– meat5000