Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → self guided rockets?
self guided rockets?
2002-12-02, 3:41 AM #1
Eny ideas for self guided rockets? (ie it change vector if target move)
2002-12-02, 5:18 AM #2
Something like ..

Code:
Setthinglook(Missle, Vectorsub(Getthingpos(Target), Getthingpos(Missle)));


..Inside of a fast pulse will keep the missle pointing at the target, and ..

Code:
Setthingvel(Missle, Vectorscale(Getthinglvec(Missle), Factor)); }


..will make the missle move toward the target again. 'Factor' is an acceleration multiplyer.
And when the moment is right, I'm gonna fly a kite.
2002-12-02, 9:29 AM #3
where do you want them to guide themselves?

[meaning, do you want them to find an actor or player on their own or do you want to select the target yourself?]

[This message has been edited by Hebedee (edited December 02, 2002).]
2002-12-02, 12:55 PM #4
realistic missle guidance
Code:
 
pulse:
   victim = FirstThinginView(player, 50, 10, 0x4FE);
   curvel = VectorScale(GetThingLVec(rocket), 2.7);
   SetThingLook(rail, VectorSub(GetThingPos(victim), GetThingPos(rocket)));
   lookvel = VectorScale(GetThingLVec(rocket), 2.0);
   seekvel = VectorAdd(curvel, lookvel);
   SetThingVel(rocket, seekvel);
 


All that extra stuff so the missle will arc to its target.

[This message has been edited by Ace1 (edited December 02, 2002).]
I am _ Ace_1 _ , and I approve this message.
2002-12-02, 2:24 PM #5
Thats pretty neat, Ace. The one I made just turns around and vectors (ha) right in on the target.

↑ Up to the top!