[SOLVED] Physics Formula: s = 1/2a*t^2 + (u * t)

For questions about using Classic.

Post » Fri Jun 24, 2011 2:56 pm


Hey guys,

I am just getting back into the realm of equations again, and have a question, that maybe someone more into the depths of this could help me with.

I am trying to find a formula, into which I input desired Distance (s) and Time (t), resulting in a given Initial Velocity (u) in relation to a negative Acceleration (-a), so that after going the given Distance (s), the Final Velocity (v) = 0.

What equations I think should help me achieve this somehow:
s = 1/2 * a * t^2 + (u * t)
v = u + a*t
OR in this case:
s = 1/2 * -a * t^2 + (u * t)
v = u - a*t

I know that as an example, if I wanted to go the Distance (s) [u:2br9o2qx]= 100m[/u:2br9o2qx] in Time (t)[u:2br9o2qx] = 10s[/u:2br9o2qx], I would use the following values:
1.) [u:2br9o2qx]0[/u:2br9o2qx] = 20 - 2*10 [v = u - a*t]
2.) [u:2br9o2qx]100m[/u:2br9o2qx] = -1 * 10^2 + (20 * 10) [s = 1/2 -a * t^2 + (u * t)]
3.) Now I could just increase the Time (t) as I want in relation to changing either the Initial Velocity (u) or Acceleration(a); For example, if I wanted the Distance(s) = 1000m, I could change Time(t) = 100, and Acceleration(a) = 0.2 .

But I struggle converting this knowledge and the relativity of the values to each other into a formula. I would grealty appreciate if anyone could help me out here.

Thanks for Your time. :)
Shindoh2011-06-27 05:22:57
B
3
G
1
Posts: 70
Reputation: 615

Post » Fri Jun 24, 2011 7:29 pm

I don't know where you pulled those values of acceleration and initial velocity from in your example, but for that formula to work you will need to have only one variable (unless you plan on programming simultaneous equations into your program, but I've not tried that before so I can't help there sorry :? ). This means you can either look for acceleration, or initial velocity.

Acceleration can be calculated as (v - u) / t
Initial velocity can be calculated as v - at

However, you may find these equations of motion useful:

s = (1/2)(u + v)t
s = ut + (1/2)at^2
v^2 = u^2 + 2as
v = u + at
a = (v - u) / t

Edit: also, for unnaccelerated motion there is s = vt
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Fri Jun 24, 2011 8:32 pm

You're almost there.

Given:
s distance
t time
v final velocity=0

Find:
u initial velocity
a acceleration

(1)
v=a*t + u
solve for u
=> u= 0-a*t or u=-a*t

(2)
s = 1/2 * a * t^2 + u * t
substitute u with -a*t and solve for a:
a=-2*s/t^2

and you also get u by plugging a into equation 1
u=2*s/t


Here's a example:
http://dl.dropbox.com/u/5426011/example ... ration.cap
B
79
S
24
G
54
Posts: 4,751
Reputation: 40,765

Post » Mon Jun 27, 2011 5:21 am

Guys, I love You. And R0J0hound, exactly that! Thank You! 
B
3
G
1
Posts: 70
Reputation: 615


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest