Advertisement

missiles

Started by February 17, 2003 10:37 AM
2 comments, last by Mursel 22 years ago
how to implement simple autotargeting missiles? tnx
http://www.red3d.com/cwr/steer/PursueEvade.html

ToohrVyk
-------------
Extatica - a free 3d game engine
Available soon!
Click here to learn more
Advertisement
If you limited by max speed or max acceleration , i can help in this way.

With speed it easy ,

void seek (float deltatime){
DesiredVelocity = RelativeTargetPosition;
DesiredVelocity.norm();
DesiredVelocity *= MaxVelocityModule;
//
DesiredAcceleration = (DesiredVelocity - MyVelocity)/deltatime;
if(DesiredAcceleration.len() > MaxAcceleration ){
DesiredAcceleration *= MaxAcceleration/DesiredAcceleration.len();
}
////\
......

}



thank you guys alot!

This topic is closed to new replies.

Advertisement