Implementing Projectile Motion

后端 未结 4 1521
轻奢々
轻奢々 2021-01-05 02:27

I\'ve scored the internet for sources and have found a lot of useful information, but they are math sites trying to tell me how to solve what angle an object has to be at to

4条回答
  •  悲&欢浪女
    2021-01-05 03:17

    Some definitions:

    x = x-coordinate (horizontal)
    y = y-coordinate (vertical)
    Vx = x-velocity
    Vy = y-veloctiy
    t = time
    A = initial angle
    V0 = intial velocity
    g = acceleration due to gravity
    

    Some equations:

    Vx = V0*cos(A)
    Vy = V0*sin(A) - g*t
    x = V0*cos(A)*t
    y = V0*sin(A)*t - (1/2)*g*t^2
    

提交回复
热议问题