So what I want is so that when he jumps up he doesn’t go up at the same speed and then suddenly stop and come back down what I want is it to go up and then slowly slow down until you get to the top then you slowly speed up as you go down to hit the ground at the same speed that you started going up at. To do this would it be entirely mathematical or will I have to use some functions that were built into panda and could you also please give me an example or something because if it is entirely mathematical I can’t think of a way you would be able to do it.[/url]
Jumping is parabolic, not sinusoidal. Remember high school physics class, z = 0.5 * g * (t**2). g is known, it is on average 9.81 m/s/s on earth, so you can calculate the required z of the model.
Or you could properly simulate the accelerations involved in a task, which should be just as simple.
No math needed. LerpPosInterval has a optional parameter blendType. Just set blendType=‘easeOut’ for the going up part of the jump and blendType=‘easeIn’ for going down. www.panda3d.org/manual/index.php/Lerp_Intervals