Jump to content
  • Advertisement
Sign in to follow this  
tinu

simulating arrow

This topic is 3669 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I need to simulate the motion of an arrow released from a bow at a particular height from the ground. Is it The equation of the projectile, i should use for it. I find the following equation as a result of googling. x(t) = x0 + t* v0 +t^2/2 * a0 This is a single dimension equation. What is the two diemensional equivalent of it... Expecting reply....

Share this post


Link to post
Share on other sites
Advertisement
If you put t (time) on the x (horizontal) axis, and x on the y (vertical) axis then you get a "two-dimensional equation" (Or at least a two-dimensional plot).

Share this post


Link to post
Share on other sites
The equation is exactly the same for all dimensions:

p(t) = p(0) + v(0) t + a t2/2

Or, expanded for x, y and z:

px(t) = px(0) + vx(0) t + ax t2/2
py(t) = py(0) + vy(0) t + ay t2/2
pz(t) = pz(0) + vz(0) t + az t2/2

However, if the only acceleration is gravity, pointing straight down, then ax and ay wil be zero, resulting in:

px(t) = px(0) + vx(0) t
py(t) = py(0) + vy(0) t
pz(t) = pz(0) + vz(0) t + az t2/2

Share this post


Link to post
Share on other sites
Actually that is already a multi-dimensional equation, you just have to look at x0,v0 and a0 as vectors.

One more thing, that is not really a projectile equation, it is just an equation for particle movement with initial velocity and fixed acceleration.

if you replace a0 with -g (-9.81m/s2 on the vertical axis) you'll get your projectile equation.

EDIT: late

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!