- Joined
- Oct 18, 2007
- Messages
- 930
Ok, I am currently making a spell that uses missiles and i need a formula to make the missile turn in a specefic way.
I cannot explain alot more if i dont show a pic.
The Red dot is the target, the Blue dot is the caster, the Yellow dot is the missile and the Black line is the trail of the missile.
NOTE: All this is not moving in the air, it is turning(moving) on the ground.
What i want the formula to do is that you get some variables to work with
The missiles moves with "Speed" every "Interval". So i need a formula to 'parabolic' move the missile on ground from the caster to the target
Regards, Dynasti
I cannot explain alot more if i dont show a pic.
The Red dot is the target, the Blue dot is the caster, the Yellow dot is the missile and the Black line is the trail of the missile.
NOTE: All this is not moving in the air, it is turning(moving) on the ground.
What i want the formula to do is that you get some variables to work with
- constant real Speed ( How fast the missile moves )
- constant real Interval ( Interval for when the missile is moved )
- Arch ( It is how great the arch will be, This will be defined on the launch. Missiles go off from different angles then with different arches )
- Distance ( The distance from the missile to the target. This will be updated every interval )
- Angle ( The angle from the missile to the target " in radians ", and This will be updated every interval )
The missiles moves with "Speed" every "Interval". So i need a formula to 'parabolic' move the missile on ground from the caster to the target
Regards, Dynasti