![]() |
angles
Does anyone know how to get the opposite (dont know how to explain) of an angle?
Like used in pong. But I need it in sine/cosine form (pi being the 360º angle) |
did you just ask *Puts lips together makes humming noise and moves finger up and down hundereds of times*?
|
Quote:
|
Opposite angle = angle - pi.
|
Re: Re: angles
Quote:
I think I am not explaining myself well b/c in Pong the angle isnt always the opposite of what it was .. (specially when it hits the player tab thing) btw whats getangle for? and Slak I tried that.. not it .. hehe |
hmmm I don't really know a formular for this but a way to emulate something like this is able with using vars for vertical and horizontal movement...
something like this for example: NPC Code: it's like the pong ball |
Quote:
i need mine randomized to actually fit the real reflections of the angles .. ok im confusing myself here.. |
Re: angles
Quote:
my forumals I could post for ya if ya want, they may help a bit... |
Re: Re: angles
Quote:
i wont bother w/ this till I come across this agn and really need it hehe |
Well, you could look for a Unit Circle for help. I had to use one last year in my Advanced Algebra/Trigonometry class. It is basically a circle with Radius 1 that has the Degree and Radian coordinates all along the circle. Like, 180 degrees is pi, while 90 degrees is pi/2. If you need to change degrees into radians, use this equation:
(degrees/180)*pi |
if you would explain a little better, than i could help you, im great at mathmatics
|
Quote:
|
Yea, I would like to know what getangle is also
newfeatures: - new script function getangle(dx,dy) commands: getangle( dx,dy ) the angle of vector (dx,dy) to the x coordinate (0...2*3.14) That really doesnt help to much :( |
Re: Re: Re: angles
Quote:
|
could you possibly post an example? thats the way i usually learn best.
|
All times are GMT +2. The time now is 03:48 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.