Gamestudio Links
Zorro Links
Newest Posts
Can't go to FALSEGOTO:DOUBLE?
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
RPG PARTY
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?

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

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

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

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

Top
#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: http://store.steampowered.com/app/407570

Top
#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.

Top
#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!

Top


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) 3dgamestudio.net