Gamestudio Links
Zorro Links
Newest Posts
by Turrican
Today at 00:34
Chamferbox Lucky Pack, once a year chance, 90% OFF limited deals
by Chamferbox
Yesterday at 21:10
How detect 200 bars after trade was opened?
by Tuguldur717
Yesterday at 13:58
Data quality and accuracy of test results
by brax
Yesterday at 13:44
Can be changed the header in Zorro?
by tomaslolo
Yesterday at 12:12
Price difference between last tick and previous.
by JRA
Yesterday at 11:47
Zorro on Linux
by alb
02/21/18 20:47
AUM Magazine
Latest Screens
Forgotten Tales - Demo version
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Who's Online
17 registered (dmac, Hredot, Cheulmen, BlackJack, MatPed, Kartoffel, alibaba, AndrewAMD, 3 invisible), 475 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
tomaslolo, dmac, alb, may, piddle61
17896 Registered Users
Topic Options
Rate This Topic
#468827 - 10/22/17 15:15 Algorithm behind vec_rotate
PadMalcom Offline
Serious User

Registered: 03/08/06
Posts: 1989
Loc: Karlsruhe
Hi, I've been searching for a way to rotate a vector as vec_rotate does it. Now I'm too curious to see the algorithm behind it. Can you explain it briefly?

#468831 - 10/22/17 16:03 Re: Algorithm behind vec_rotate [Re: PadMalcom]
Aku_Aku Offline

Registered: 09/25/09
Posts: 917
Loc: Budapest
Maybe it helps: rotating...

#468836 - 10/23/17 10:58 Re: Algorithm behind vec_rotate [Re: Aku_Aku]
Kartoffel Online

Registered: 06/11/09
Posts: 2146
Loc: Bavaria, Germany
I guess it's three consecutive "2d" rotations (pan rotates xy, tilt xz, and roll yz). I'm not sure in which order they are performed, though.
POTATO-MAN saves the day! - Random

#468838 - 10/23/17 11:33 Re: Algorithm behind vec_rotate [Re: Kartoffel]
Superku Offline
Senior Expert

Registered: 09/13/03
Posts: 6635
Loc: Kiel (Germany)
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Superku The Game

Severely outdated footage:

#468842 - 10/23/17 13:23 Re: Algorithm behind vec_rotate [Re: Superku]
jcl Offline

Chief Engineer

Registered: 07/22/00
Posts: 26227
Loc: Frankfurt
Yes, that's the algorithm. The angle is converted to a rotation matrix, with which the vector is then multiplied.

#469272 - 11/10/17 07:11 Re: Algorithm behind vec_rotate [Re: jcl]
PadMalcom Offline
Serious User

Registered: 03/08/06
Posts: 1989
Loc: Karlsruhe
Thank you all!


Moderator:  elsewood, old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | resources | magazine | manual | support faq | bugs

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