Gamestudio Links
Zorro Links
Newest Posts
Position Close not possible
by Paul_der_Zweite
24 minutes 3 seconds ago
by Paul_der_Zweite
Today at 10:43
New Zorro version 1.88
by jcl
Today at 09:35
Options trading questions
by jcl
Today at 09:17
About auto hide invisible entitiesl
by HellThunder
Today at 08:36
Bump with detail?
by Dooley
Today at 05:27
Windows permission issues
by HellThunder
Yesterday at 21:51
AUM Magazine
Latest Screens
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Who's Online
14 registered (Paul_der_Zweite, ChrstphFr, Dalla, Ayumi, kvm, MatPed, cepturion, 4 invisible), 449 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
cepturion, Mon3y, vincitytaymo, just, XJohnny_Hoffmann
18057 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: 1993
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 Offline

Registered: 06/11/09
Posts: 2210
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: 6748
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 Online

Chief Engineer

Registered: 07/22/00
Posts: 26491
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: 1993
Loc: Karlsruhe
Thank you all!


Moderator:  elsewood, old_bill, Tobias 

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

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