Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] - Heat-Seeking Missile

Author
Message
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 14th Dec 2013 17:38 Edited at: 3rd Jan 2014 00:01
It would be great if someone could improve this, perhaps using CURVEVALUE/CURVEANGLE, ATAN/ATANFULL or whatever else you math whizzes do.

It does work though!
(Remove the cheesy sound statements if not to your liking.)



D.D.

Attachments

Login to view attachments
captain caveman
10
Years of Service
User Offline
Joined: 9th Dec 2013
Location:
Posted: 16th Dec 2013 17:36
I ran that code in DBP it doesn't seem to work that well, the cube very rarely hits the sphere?
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 17th Dec 2013 20:18
Quote: "I ran that code in DBP it doesn't seem to work that well, the cube very rarely hits the sphere?"


If you adjust the Turning# and MSpeed# variables you can change the missile's performance.

D.D.

Login to post a reply

Server time is: 2024-03-29 05:31:44
Your offset time is: 2024-03-29 05:31:44