[solved] Get the duration of an accelerating bullet travel ?

Get help using Construct 2

Post » Tue Feb 17, 2015 10:01 pm

Hi !

Simple question : I have two points : A and B.
My bullet has a speed of 0 at start and an acceleration of let say, 300.
It starts at A and I want to know when it will reach B.

Any idea how to calculate this ?
Last edited by Coin-coin le Canapin on Tue Feb 17, 2015 11:10 pm, edited 1 time in total.
B
12
S
7
G
7
Posts: 447
Reputation: 4,270

Post » Tue Feb 17, 2015 10:16 pm

Assuming acceleration remains constant, then the time from A to B should be:

Code: Select all
time = sqrt( (2 * (Distance from A to B)) / Acceleration )

Which is obtained by taking the second integral of the acceleration -- 300, in this case -- and solving for time.
Moderator
B
106
S
41
G
20
Posts: 1,584
Reputation: 18,917

Post » Tue Feb 17, 2015 11:05 pm

It works perfectly, thank you ! :)
B
12
S
7
G
7
Posts: 447
Reputation: 4,270


Return to How do I....?

Who is online

Users browsing this forum: Desatento, Husui, oddreal and 1 guest