Macmenace
- 3
- 0
Hi,
I'm working on a computer simulation to launch an object from point A to point B in 3D space.
I'm currently using the range equation:
Range = ( Vo^2 * sin( 2 * theta ) ) / gravity
and I solved for Vo and got:
Vo = sqrt( ( Range * gravity ) / sin( 2 * theta ) )
I'm currently using a constant theta of 45 degrees, and this equation works perfectly for launching an object when A and B's y-component are the SAME. If the y-component varies the object over shoots or under shoots its target.
My problem is that the y-component of A and B can be different. Is there another equation or consideration I should take into account if I want to know the initial velocity an object needs to travel a specific range in 3D space?
I'm working on a computer simulation to launch an object from point A to point B in 3D space.
I'm currently using the range equation:
Range = ( Vo^2 * sin( 2 * theta ) ) / gravity
and I solved for Vo and got:
Vo = sqrt( ( Range * gravity ) / sin( 2 * theta ) )
I'm currently using a constant theta of 45 degrees, and this equation works perfectly for launching an object when A and B's y-component are the SAME. If the y-component varies the object over shoots or under shoots its target.
My problem is that the y-component of A and B can be different. Is there another equation or consideration I should take into account if I want to know the initial velocity an object needs to travel a specific range in 3D space?