Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,789 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
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: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
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 | 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