• Status: Solved
• Priority: Medium
• Security: Public
• Views: 173
• Last Modified:

# Using Trigometric Functions in VB game.....

Ok,
Now in my game I want to be able to have Auto Rocket thingies that fire Missiles that lock to your ship.  I want to know if anyone has Tutorials(please) or can just inform me on how to use trigometric functions to figure out angles to track the target??

Thanx
Themaxxx
0
themaxxx
Asked:
1 Solution

Commented:
Yep, go down to your local software store and buy a Trig tutorial program, or your local bookstore and buy a Trig book.

Some "How to write games in (misc. programming language)" books have sample code for stuff like that, also.

And its "Trigonometic" ... it comes from Trigonometry, not Trigometry. ;-)
0

Commented:
you can use cos() sin() tan() arccos() arcsin() arctan() to do just that... what more do you need?

..-=ViKtOr=-..
0

Commented:
VB has the functions (to name a few)
Sin
Cos
Exp
Log
Sqr
Tan
Atn

All angles are in Radians not degrees.
There are 2*PI Radians in 360'

This is a great starting point for trig:
http://aleph0.clarku.edu/~djoyce/java/trig/
0

Author Commented:
thanx a lot man

You have basically answered everything about my game problems.  It's coming along great
0

Commented:
Glad to help.
Let us know when you're done so we can beta test! :-)
0

Author Commented:
no problem....
go to www3.edgenet.net/nuke/den_4/den_4_frameset.html
page just got up

0

Commented:
This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.

http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
http://www.experts-exchange.com/jsp/zonesAll.jsp

Thank you,
Moondancer
Moderator @ Experts Exchange
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

## Featured Post

Tackle projects and never again get stuck behind a technical roadblock.