Results 1 to 1 of 1

Math Help - Angle of projectile

  1. #1
    Newbie
    Joined
    Nov 2010
    Posts
    4

    Angle of projectile

    I am having trouble with the height component of a simple projectile equation...

    Here is what I have done already:

    Distance = GetDistance3D(Bullet(x).BulletStartPosition.x, 0, Bullet(x).BulletStartPosition.z, Bullet(x).BulletPosition.x, 0, Bullet(x).BulletPosition.z)

    Bullet(x).BulletPosition.x = Bullet(x).BulletPosition.x + Cos(Bullet(x).BulletAngleY)
    Bullet(x).BulletPosition.z = Bullet(x).BulletPosition.z + Sin(Bullet(x).BulletAngleY)

    This works fine, the bullet moves at the correct angle. I am having a problem with the height of the bullet as it moves through the air. I think it should be something like this:
    Bullet(x).BulletPosition.y = Tan(Bullet(x).BulletAngleX) * Distance
    However, this doesn't work. I am not worried about gravity pulling the bullet down, i just want to shoot a bullet in the desired direction.

    Please help

    thanks
    Last edited by SimonCanning; November 12th 2010 at 07:39 PM.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Projectile fired at 30 angle
    Posted in the Math Topics Forum
    Replies: 1
    Last Post: April 5th 2011, 09:38 AM
  2. Replies: 0
    Last Post: March 1st 2010, 09:53 AM
  3. Simplify the Expression (Double-Angle or Half-Angle)
    Posted in the Trigonometry Forum
    Replies: 1
    Last Post: November 3rd 2009, 03:38 PM
  4. Replies: 2
    Last Post: March 28th 2009, 02:18 PM
  5. Replies: 2
    Last Post: February 15th 2007, 10:16 PM

Search Tags


/mathhelpforum @mathhelpforum