http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Turning to face a direction



============================================================
"So many interesting emails. So little time to read them.
Thanks to myTopica, I can find what I want, when I want it."
So can you.
http://click.topica.com/aaabBCbUrGczbU68iFa/register
============================================================

Hi,

	I have the code working for turning a ship around and flying manually but
what I really want is for my ship to be able to fly on autopilot. So if I
give it a destination X and Y it will slowly (1 in 10 module iterations)
turn to face the direction and fly there.

	I have 36 different directions my ship can face and that is all working
fine, I am just having a touch of difficulty with the logic.

	Any ideas? :-)

Tom.

------------------------------------------------------------
Join "Hot Sauce" newsletter at: www.pepperbob.com
The "best" FREE samples,FREE offers and CONTESTS 3x a week!
<A HREF="http://www.pepperbob.com">CLICK HERE</A> to Join!

____________________________________________________________
T O P I C A  -- Learn More. Surf Less. 
Newsletters, Tips and Discussions on Topics You Choose.
http://www.topica.com/partner/tag01