Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Akow, 1 invisible), 1,404 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
vec_to_angle Algorithm #282971
08/05/09 00:03
08/05/09 00:03
Joined: May 2008
Posts: 62
México.
F
FcoElizalde Offline OP
Junior Member
FcoElizalde  Offline OP
Junior Member
F

Joined: May 2008
Posts: 62
México.
Hi.
In the manual in vec_for_angle, theres a place in wich you can see the algorithm for calculation of vertex trough pan and tilt

Do someone knows where I can see the algorithm for vec_to_angle?
This function is clever in a way I cant describe.

Re: vec_to_angle Algorithm [Re: FcoElizalde] #283047
08/05/09 11:59
08/05/09 11:59
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt

Re: vec_to_angle Algorithm [Re: jcl] #283064
08/05/09 13:57
08/05/09 13:57
Joined: Jun 2008
Posts: 402
Germany
S
sebbi91 Offline
Senior Member
sebbi91  Offline
Senior Member
S

Joined: Jun 2008
Posts: 402
Germany
real math ^^


3D-Gamestudio A8 - Commercial
Re: vec_to_angle Algorithm [Re: sebbi91] #283080
08/05/09 15:30
08/05/09 15:30
Joined: May 2008
Posts: 62
México.
F
FcoElizalde Offline OP
Junior Member
FcoElizalde  Offline OP
Junior Member
F

Joined: May 2008
Posts: 62
México.
Thank a lot for this, but
How did you avoid the crash when VECTOR.y is equal to 0 in the ANGLE.pan?

Re: vec_to_angle Algorithm [Re: FcoElizalde] #283082
08/05/09 15:38
08/05/09 15:38
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
With a case differentiation. And also, better use atan2 when you really program this algorithm. Such subtleties don't appear in an algorithm description.

Re: vec_to_angle Algorithm [Re: jcl] #283083
08/05/09 15:53
08/05/09 15:53
Joined: May 2008
Posts: 62
México.
F
FcoElizalde Offline OP
Junior Member
FcoElizalde  Offline OP
Junior Member
F

Joined: May 2008
Posts: 62
México.
Ok thanks a lot, this is exactly what I was looking for


Moderated by  aztec, Inestical, Matt_Coles, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1