- #1

cubby208

- 6

- 0

**1. Acceleration**

I have been trying

I need a formula that uses.

frames till full speed

**(**(if framerate is 60fps and this value is 60 then player is at full speed after 1 second this is probably in essence really drag )

*f)*Full speed

**(stores the maximum speed in distance per second)**

*(s)*Frames

**(stores how many frames the player has been trying to run for)**

*(t)*If their are more variables that are needed feel free to use them.

And comes out with

Actually speed

*(which is the speed the player should move considering acceleration this value will get added to player position each frame)*

**(as)**I suppose I am really trying to model acceleration which is like

a = (velocity change)/(time) however doing that doesn't seem to get the right effect.

My goal is that when the player moves it is not full speed from the start, instead it accelerates up to full speed. This is so if you want to for example jump across a long distance you need to get a running start.

**2. Velocity lost in a jump**

So when a human jumps about how much x, y, and z is lost (I realize it is impossible to find an exact number... I just need an estimate for a simulation). Basically when the player jumps I am going to divide x y and z velocity by a number, but I don't know which one.

I suppose in both of these situations I am really asking for cartoon physics so I might be necessary to exaggerate some values.