|
|
(95 intermediate revisions by 44 users not shown) |
Line 1: |
Line 1: |
| [http://nnnslogan.freehostia.com/volkswagen-golf65.htm volkswagen golf r32] [http://naughtygirl92.ifrance.com/data/jedwane.html jedwane] [http://naughtygirl92.ifrance.com/data/kit-wireless4.html kit wireless] [http://nnnslogan.freehostia.com/www-bayblade.htm www bayblade it] [http://nnnslogan.freehostia.com/prodotti-farmaceutici.htm prodotti farmaceutici] [http://nnnslogan.freehostia.com/otogi-2.htm otogi 2 in un video] [http://naughtygirl92.ifrance.com/data/consumabile-dvd.html consumabile dvd r vergine] [http://orel-na-vole.freehostia.com/blog/erreway-coulotte/ erreway coulotte sexy] [http://naughtygirl92.ifrance.com/data/www-xx.html www xx com] [http://naughtygirl92.ifrance.com/data/la-torre14.html la torre dei miracoli] [http://rasa18.ifrance.com/stampante-epson40/ stampante epson stylus photo 1290] [http://nnnslogan.freehostia.com/foto-decapitazione5.htm foto decapitazione soldato americano] [http://orel-na-vole.freehostia.com/blog/keys-per/ keys per seca viaccess and nagra] [http://naughtygirl92.ifrance.com/data/warbus.html warbus] [http://rasa18.ifrance.com/mx15/ m40x 243] [http://naughtygirl92.ifrance.com/data/www-47.html www 190 it omnitel] [http://orel-na-vole.freehostia.com/blog/hotel-elba1/ hotel elba] [http://rasa18.ifrance.com/rm-di/ rm di rossi g c] [http://naughtygirl92.ifrance.com/data/pmr-tp.html pmr tp380] [http://rasa18.ifrance.com/memole/ memole] [http://orel-na-vole.freehostia.com/blog/www-scuderia/ www scuderia friuli it] [http://rasa18.ifrance.com/xoom-movies/ xoom movies on psp] [http://nnnslogan.freehostia.com/betz-wladimir.htm betz wladimir] [http://nnnslogan.freehostia.com/sgs-m.htm sgs 45m28] [http://orel-na-vole.freehostia.com/blog/musik-ship/ musik ship] [http://naughtygirl92.ifrance.com/data/los-morancos.html los morancos] [http://rasa18.ifrance.com/calendario-studentesse1/ calendario studentesse salerno] [http://nnnslogan.freehostia.com/vitim.htm vitim] [http://naughtygirl92.ifrance.com/data/horror-express.html horror express] [http://nnnslogan.freehostia.com/porta-parallela.htm porta parallela] [http://orel-na-vole.freehostia.com/blog/www-nelly2/ www nelly net] [http://rasa18.ifrance.com/max-pezzali12/ max pezzali] [http://nnnslogan.freehostia.com/lesbo2.htm lesbo] [http://rasa18.ifrance.com/aboutgay-com/ aboutgay com] [http://nnnslogan.freehostia.com/cassette-mp.htm cassette mp3] [http://naughtygirl92.ifrance.com/data/cap2.html cap 23] [http://nnnslogan.freehostia.com/konica-minolta100.htm konica minolta accessori] [http://orel-na-vole.freehostia.com/blog/centri-tim1/ centri tim] [http://rasa18.ifrance.com/nike-uomo/ nike uomo] [http://naughtygirl92.ifrance.com/data/vlmenuplus.html vlmenuplus] [http://rasa18.ifrance.com/battman/ battman] [http://nnnslogan.freehostia.com/pentium62.htm pentium4 530] [http://naughtygirl92.ifrance.com/data/wavebird-controller.html wavebird controller] [http://naughtygirl92.ifrance.com/data/konken.html konken] [http://naughtygirl92.ifrance.com/data/deva.html deva] [http://naughtygirl92.ifrance.com/data/www-lago2.html www lago it] [http://naughtygirl92.ifrance.com/data/portarivista.html portarivista] [http://naughtygirl92.ifrance.com/data/mdrv.html mdrv 700] [http://naughtygirl92.ifrance.com/data/stivali4.html stivali 36] [http://nnnslogan.freehostia.com/gioco-playstation3.htm gioco playstation wrestling] [http://orel-na-vole.freehostia.com/blog/roxenne/ roxenne] [http://nnnslogan.freehostia.com/saldatrice-moderna.htm saldatrice moderna] [http://naughtygirl92.ifrance.com/data/culo-it.html culo it] [http://rasa18.ifrance.com/petacciato/ petacciato] [http://rasa18.ifrance.com/paul-king/ paul king] [http://nnnslogan.freehostia.com/san-bernardo3.htm san bernardo] [http://nnnslogan.freehostia.com/dvd-bad.htm dvd bad boys 2] [http://nnnslogan.freehostia.com/scaffali-componibili.htm scaffali componibili] [http://nnnslogan.freehostia.com/sojuz.htm sojuz] [http://nnnslogan.freehostia.com/roghudi.htm roghudi] [http://rasa18.ifrance.com/hold-on/ hold on jet] [http://rasa18.ifrance.com/come-essere/ come essere chiamate a fare le veline] [http://rasa18.ifrance.com/ip2/ ip] [http://nnnslogan.freehostia.com/milano-san9.htm milano san francisco biglietti aerei] [http://rasa18.ifrance.com/rosenkova/ rosenkova] [http://nnnslogan.freehostia.com/tristeza-deste.htm tristeza deste mundo] [http://nnnslogan.freehostia.com/numeri-cellulari1.htm numeri cellulari di maiale] [http://rasa18.ifrance.com/jvc-gr33/ jvc gr dz7] [http://naughtygirl92.ifrance.com/data/olimpus9.html olimpus 800] [http://rasa18.ifrance.com/incontro-midi/ incontro midi file] [http://rasa18.ifrance.com/dvdrom-oem/ dvdrom oem] [http://naughtygirl92.ifrance.com/data/rossi.html rossi 46] [http://orel-na-vole.freehostia.com/blog/paperelle/ paperelle] [http://nnnslogan.freehostia.com/mp-gb17.htm mp3 1gb usb 2 0] [http://orel-na-vole.freehostia.com/blog/imac-usato/ imac usato] [http://rasa18.ifrance.com/i-cosacchi1/ i cosacchi del volga] [http://naughtygirl92.ifrance.com/data/romance-pics.html romance pics] [http://orel-na-vole.freehostia.com/blog/el-sinaloense/ el sinaloense] [http://naughtygirl92.ifrance.com/data/giardinaggio-fai1.html giardinaggio fai te] [http://rasa18.ifrance.com/gospel-choir/ gospel choir] [http://nnnslogan.freehostia.com/hp221.htm hp 1315] [http://rasa18.ifrance.com/tv-new/ tv new hex key] [http://naughtygirl92.ifrance.com/data/sardegna-libri.html sardegna libri] [http://nnnslogan.freehostia.com/hamden.htm hamden] [http://orel-na-vole.freehostia.com/blog/biberon-giordani/ biberon giordani] [http://nnnslogan.freehostia.com/prima-di5.htm prima di sera] [http://rasa18.ifrance.com/time-is8/ time is runnig out] [http://naughtygirl92.ifrance.com/data/ventilatori-soffitto4.html ventilatori soffitto] [http://orel-na-vole.freehostia.com/blog/pamtim-jos/ pamtim jos] [http://naughtygirl92.ifrance.com/data/emma-maybe.html emma maybe] [http://rasa18.ifrance.com/hotels-roma/ hotels roma] [http://nnnslogan.freehostia.com/talbot-sumbeam.htm talbot sumbeam] [http://rasa18.ifrance.com/st-germain/ st germain] [http://naughtygirl92.ifrance.com/data/stop.html stop] [http://rasa18.ifrance.com/capodanno-roma/ capodanno roma] [http://naughtygirl92.ifrance.com/data/mamertino.html mamertino] [http://nnnslogan.freehostia.com/testo-della94.htm testo della canzone lo strano percorso] [http://nnnslogan.freehostia.com/testi-biagio.htm testi biagio antonacci] [http://rasa18.ifrance.com/nokia-auricolare9/ nokia auricolare 3310] [http://naughtygirl92.ifrance.com/data/oroscopo-affinita3.html oroscopo affinita] [http://orel-na-vole.freehostia.com/blog/canon-powershot58/ canon powershot s70] [http://orel-na-vole.freehostia.com/blog/cyclette-con1/ cyclette con volano da 9 kg] [http://orel-na-vole.freehostia.com/blog/ricetta-strudel/ ricetta strudel] [http://orel-na-vole.freehostia.com/blog/flores-de/ flores de alquiler] [http://naughtygirl92.ifrance.com/data/codes-viaccesse.html codes viaccesse] [http://rasa18.ifrance.com/Nudismo-in1/ nudismo in croazia] [http://naughtygirl92.ifrance.com/data/progettazione-ufficio.html progettazione ufficio] [http://naughtygirl92.ifrance.com/data/televisore-crt.html televisore crt] [http://orel-na-vole.freehostia.com/blog/ragazze-emilia/ ragazze emilia] [http://orel-na-vole.freehostia.com/blog/francesca-battaglia/ francesca battaglia] [http://orel-na-vole.freehostia.com/blog/monitor-samsung48/ monitor samsung 910t s] [http://orel-na-vole.freehostia.com/blog/hdd-usb9/ hdd usb 2 5] [http://naughtygirl92.ifrance.com/data/hitachi-pd6.html hitachi 37pd5200] [http://naughtygirl92.ifrance.com/data/crack-karino.html crack karino karaoke] [http://rasa18.ifrance.com/legendary-tales/ legendary tales] [http://naughtygirl92.ifrance.com/data/maniac.html maniac] [http://rasa18.ifrance.com/universita-degli4/ universita degli studi statale di milano] [http://rasa18.ifrance.com/yunus-cengel/ yunus cengel] [http://rasa18.ifrance.com/dawnload/ dawnload] [http://nnnslogan.freehostia.com/chardonnay-coppo.htm chardonnay coppo] [http://naughtygirl92.ifrance.com/data/xiaoxiao8.html xiaoxiao] [http://orel-na-vole.freehostia.com/blog/joystick-ps/ joystick ps2] [http://rasa18.ifrance.com/paris-after/ paris after dark] [http://orel-na-vole.freehostia.com/blog/callas-platinum1/ callas platinum] [http://rasa18.ifrance.com/pellicola-protettiva/ pellicola protettiva per display] [http://orel-na-vole.freehostia.com/blog/bryn-terfel/ bryn terfel live in concert songs and arias] [http://rasa18.ifrance.com/ati-radeon214/ ati radeon 9250 agp 4x] [http://orel-na-vole.freehostia.com/blog/zantac-/ zantac 75 10 cpr 75 mg] [http://naughtygirl92.ifrance.com/data/hong-nhng.html hong nhng] [http://rasa18.ifrance.com/lexar-memory/ lexar memory stick duo] [http://orel-na-vole.freehostia.com/blog/km-smart10/ km0 smart auto km 0] [http://naughtygirl92.ifrance.com/data/mamma-ponpino.html mamma ponpino] [http://orel-na-vole.freehostia.com/blog/stampanti-laser77/ stampanti laser a colori aa] [http://orel-na-vole.freehostia.com/blog/delta-force8/ delta force black hawk down] [http://naughtygirl92.ifrance.com/data/rustling-landscape.html rustling landscape] [http://naughtygirl92.ifrance.com/data/channing.html channing] [http://nnnslogan.freehostia.com/e-vita.htm e vita sara] [http://rasa18.ifrance.com/pantaloni-salopette/ pantaloni salopette] [http://orel-na-vole.freehostia.com/blog/stampante-hp97/ stampante hp designjet] [http://naughtygirl92.ifrance.com/data/www-ricoh.html www ricoh it] [http://rasa18.ifrance.com/memorie-ram26/ memorie ram per notebook] [http://nnnslogan.freehostia.com/s-powershot1.htm s45 powershot] [http://rasa18.ifrance.com/kengah/ kengah] [http://rasa18.ifrance.com/krav-maga/ krav maga] [http://orel-na-vole.freehostia.com/blog/couronne-training/ couronne training] [http://orel-na-vole.freehostia.com/blog/compagnie-aeree7/ compagnie aeree] [http://naughtygirl92.ifrance.com/data/volvo-s24.html volvo s60 t5] [http://naughtygirl92.ifrance.com/data/colonna-sonora77.html colonna sonora film mediterraneo] [http://nnnslogan.freehostia.com/vaffanculo-mp1.htm vaffanculo mp3] [http://nnnslogan.freehostia.com/kenwood11.htm kenwood 1000] [http://orel-na-vole.freehostia.com/blog/hamlet-scheda2/ hamlet scheda fire wire pci] [http://nnnslogan.freehostia.com/gigi-d51.htm gigi d alessio 2003] [http://nnnslogan.freehostia.com/turbo-pascal1.htm turbo pascal] [http://nnnslogan.freehostia.com/changa.htm changa] [http://nnnslogan.freehostia.com/guerra-tra4.htm guerra tra i pianeti] [http://orel-na-vole.freehostia.com/blog/h-m1/ h m s victory] [http://orel-na-vole.freehostia.com/blog/desmina/ desmina] [http://rasa18.ifrance.com/foto-ragazze17/ foto ragazze carine] [http://naughtygirl92.ifrance.com/data/videos-de89.html videos de franco de vita] [http://rasa18.ifrance.com/fructuosa/ fructuosa] [http://orel-na-vole.freehostia.com/blog/gurowski-adam/ gurowski adam] [http://naughtygirl92.ifrance.com/data/winchell.html winchell] [http://nnnslogan.freehostia.com/delma.htm delma] [http://nnnslogan.freehostia.com/polar-m5.htm polar m61] [http://orel-na-vole.freehostia.com/blog/asus-centrino7/ asus centrino 12] [http://orel-na-vole.freehostia.com/blog/hotel-marsa/ hotel marsa alam] [http://nnnslogan.freehostia.com/schermo-video2.htm schermo video proiettore] [http://naughtygirl92.ifrance.com/data/donne-sopra.html donne sopra la quarantina] [http://naughtygirl92.ifrance.com/data/blacks-on1.html blacks on blondes] [http://rasa18.ifrance.com/konkey/ konkey] [http://rasa18.ifrance.com/valigia-trolley/ valigia trolley] [http://orel-na-vole.freehostia.com/blog/i-munchies/ i munchies] [http://orel-na-vole.freehostia.com/blog/cantine-gaia/ cantine gaia] [http://nnnslogan.freehostia.com/bikini-dolce.htm bikini dolce] [http://rasa18.ifrance.com/giornali-agricoltura/ giornali agricoltura] [http://nnnslogan.freehostia.com/victorinox-hercules.htm victorinox hercules] [http://nnnslogan.freehostia.com/paola-rey3.htm paola rey sex] [http://rasa18.ifrance.com/fornelli-piani/ fornelli piani cottura] [http://nnnslogan.freehostia.com/indesit-wil5.htm indesit wil lavatrice] [http://naughtygirl92.ifrance.com/data/trampolino-.html trampolino aqua] [http://nnnslogan.freehostia.com/hitachi19.htm hitachi 160] [http://naughtygirl92.ifrance.com/data/video-game2.html video game] [http://naughtygirl92.ifrance.com/data/emulador-de6.html emulador de gt] [http://rasa18.ifrance.com/hussein/ hussein] [http://rasa18.ifrance.com/losec-mg/ losec 40mg iv 5 fl] [http://orel-na-vole.freehostia.com/blog/guild-wars3/ guild wars] [http://naughtygirl92.ifrance.com/data/girl-act1.html girl act right traduzione] [http://nnnslogan.freehostia.com/asus-scheda11.htm asus scheda madre socket 478] [http://naughtygirl92.ifrance.com/data/parola-di.html parola di ladro] [http://orel-na-vole.freehostia.com/blog/redding/ redding] [http://naughtygirl92.ifrance.com/data/stadio-phono.html stadio phono] [http://orel-na-vole.freehostia.com/blog/siti-wap/ siti wap] [http://orel-na-vole.freehostia.com/blog/kazza/ kazza] [http://orel-na-vole.freehostia.com/blog/monitor-a/ monitor a plasma] [http://naughtygirl92.ifrance.com/data/volkswagen-sharan2.html volkswagen sharan td] [http://naughtygirl92.ifrance.com/data/chicco-baby3.html chicco baby kilo] [http://nnnslogan.freehostia.com/dissipatore-in2.htm dissipatore in rame per cpu dissipatori] [http://naughtygirl92.ifrance.com/data/lettori-dvd106.html lettori dvd lg] [http://orel-na-vole.freehostia.com/blog/geoweb/ geoweb] [http://nnnslogan.freehostia.com/promedia.htm promedia 21]
| | {{LanguageBar|title = QAngle}} |
| {| style="text-align:center"
| | |
| ! Description || Name || Value || Image || Code
| | {{toc-right}} |
| |-
| | |
| |rowspan="3"| An angular world<br />orientation in degrees. || Pitch || Y
| | '''QAngle''' is a C++ class in [[Source]] that represents a three-dimensional [[Wikipedia: Extrinsic rotations|extrinsic Tait-Bryan rotations]] following the [[Wikipedia: Right-hand rule|right-hand rule]], offset from the cardinal [[Coordinates|Z axis]]. Each QAngle contains three [[vec t]] rotation values: |
| |rowspan="3"| [[Image:Roll_pitch_yaw.gif]]
| | == == |
| |rowspan="3"| <code>QAngle(y, z, x)</code>
| | === X === |
| |-
| | '''X''' pitch +down/-up |
| | Yaw || Z
| | === Y === |
| |-
| | '''Y''' yaw +left/-right |
| | Roll || X
| | === Z === |
| |}
| | '''Z''' roll +right/-left |
| [[Category:Glossary]] [[Category:Helpers]] [[Category:Level Design]] | | |
| | <code>(-45,10,0)</code> means 45° up, 10° left and 0° roll. |
| | |
| | {{tip|The axes are sometimes called rX, rY and rZ to distinguish them from [[vector]] axes.}} |
| | |
| | {{note|Z is clamped to +/-50 for player viewangles.}} |
| | |
| | == Declaration == |
| | |
| | QAngle angMyAngle = QAngle(-45,10,0); |
| | |
| | * You could also assign to the X, Y and Z member variables separately. |
| | * The prefix <code>ang</code> (or sometimes just <code>a</code>) identifies the variable as an angle. |
| | |
| | == Orientation == |
| | |
| | To get a feeling for how a <code>QAngle([X], [Y], [Z])</code> works, imagine a first-person perspective: |
| | |
| | * Looking down or up corresponds to positive or negative [X] |
| | * Looking left or right corresponds to positive or negative [Y] |
| | * Tilting your head so your right or left ear faces the ground corresponds to positive or negative [Z] |
| | |
| | To relate this back to vectors and coordinates: The values of [X], [Y], and [Z] correspond to a clockwise rotation (in degrees) around the [[Coordinates|absolute axes]]{{confirm}} y, z, and x, respectively. |
| | |
| | "Clockwise rotation" in an axis assumes the viewer is located at the origin looking in the positive direction of said axis. |
| | |
| | === Naming Conventions === |
| | |
| | Different fields use different naming conventions to describe these angles. To clear up any conflicting terms, short explanations are included below. Source Engine seems to draw its lingo from Aerospace Engineering. |
| | |
| | '''Aerospace Engineering''' |
| | |
| | {{Expand|When imagining a plane, pitch moves the nose up and down, yaw moves the nose left and right, and roll causes one wing to move up and the other wing to move down. |
| | [[Wikipedia: Aircraft principal axes|In Aerospace Engineering]], this system is also referred to as Euler angles if — unlike QAngles — the axes rotate along. See "Mathematics" for clarification.}} |
| | |
| | '''Mathematics''' |
| | |
| | {{Expand| Strictly speaking, QAngles would be defined as [[Wikipedia: Extrinsic rotations|extrinsic Tait-Bryan rotations]] following the [[Wikipedia: Right-hand rule|right-hand rule]]. The terms "Tait-Bryan angles" and "Euler angles" are sometimes used interchangeably however. Breaking down this name into digestible chunks: |
| | |
| | * The difference between [[Wikipedia: Extrinsic rotations|intrinsic and extrinsic rotations]], is that with the former, each rotation shifts the axes along with it |
| | * The difference between [[Wikipedia: Euler angles|proper Euler angles and Tait-Bryan angles]], is that the former rotates twice around one axis and once around another (alternatingly), while the latter rotates once around all three axes |
| | * The [[Wikipedia: right-hand rule|right-hand rule]] states that if the thumb of one's right hand is pointing along the positive direction of an axis, their other fingers will curl in the positive direction of rotation |
| | |
| | {{tip|Since many conflicting definitions are used in rotation, being explicit when it comes to naming can help avoid confusion}} }} |
| | |
| | == Converting from Vector == |
| | |
| | As there is no specific [[Data Descriptions#DEFINE FIELD|datadesc keyfield]] for angles, one chosen in Hammer will arrive as a [[vector]]. Its ordinates will represent degrees of rotation and not coordinates so it must be fixed up before use: |
| | |
| | <source lang=cpp> |
| | QAngle angMyAngle = QAngle(vecFromHammer.x, vecFromHammer.y, vecFromHammer.z); |
| | |
| | // Conversion back to a vector, if required |
| | AngleVectors(angMyAngle, &vecFromHammer);</source> |
| | |
| | == Presence == |
| | |
| | * SP 2013 ([https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/sp/src/public/mathlib/vector.h#L1661 blob] [https://github.com/ValveSoftware/source-sdk-2013/blob/master/sp/src/public/mathlib/vector.h#L1661 master]) |
| | * MP 2013 ([https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/mp/src/public/mathlib/vector.h#L1661 blob] [https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/public/mathlib/vector.h#L1661 master]) |
| | |
| | == See also == |
| | |
| | * [[Wikipedia:Yaw, pitch, and roll]] |
| | * [[getpos]] |
| | * [[Vector]] and [[Coordinates]] |
| | * [[AngleVectors()|<code>AngleVectors()</code> / <code>VectorAngles()</code>]] |
| | |
| | [[Category:Source class]] |
| | [[Category:Glossary]] |
| | [[Category:Variables]] |
QAngle is a C++ class in Source that represents a three-dimensional extrinsic Tait-Bryan rotations following the right-hand rule, offset from the cardinal Z axis. Each QAngle contains three vec t rotation values:
X
X pitch +down/-up
Y
Y yaw +left/-right
Z
Z roll +right/-left
(-45,10,0)
means 45° up, 10° left and 0° roll.
Tip:The axes are sometimes called rX, rY and rZ to distinguish them from vector axes.
Note:Z is clamped to +/-50 for player viewangles.
Declaration
QAngle angMyAngle = QAngle(-45,10,0);
- You could also assign to the X, Y and Z member variables separately.
- The prefix
ang
(or sometimes just a
) identifies the variable as an angle.
Orientation
To get a feeling for how a QAngle([X], [Y], [Z])
works, imagine a first-person perspective:
- Looking down or up corresponds to positive or negative [X]
- Looking left or right corresponds to positive or negative [Y]
- Tilting your head so your right or left ear faces the ground corresponds to positive or negative [Z]
To relate this back to vectors and coordinates: The values of [X], [Y], and [Z] correspond to a clockwise rotation (in degrees) around the absolute axes[confirm] y, z, and x, respectively.
"Clockwise rotation" in an axis assumes the viewer is located at the origin looking in the positive direction of said axis.
Naming Conventions
Different fields use different naming conventions to describe these angles. To clear up any conflicting terms, short explanations are included below. Source Engine seems to draw its lingo from Aerospace Engineering.
Aerospace Engineering
When imagining a plane, pitch moves the nose up and down, yaw moves the nose left and right, and roll causes one wing to move up and the other wing to move down.
In Aerospace Engineering, this system is also referred to as Euler angles if — unlike QAngles — the axes rotate along. See "Mathematics" for clarification.
|
Mathematics
Strictly speaking, QAngles would be defined as extrinsic Tait-Bryan rotations following the right-hand rule. The terms "Tait-Bryan angles" and "Euler angles" are sometimes used interchangeably however. Breaking down this name into digestible chunks:
- The difference between intrinsic and extrinsic rotations, is that with the former, each rotation shifts the axes along with it
- The difference between proper Euler angles and Tait-Bryan angles, is that the former rotates twice around one axis and once around another (alternatingly), while the latter rotates once around all three axes
- The right-hand rule states that if the thumb of one's right hand is pointing along the positive direction of an axis, their other fingers will curl in the positive direction of rotation
Tip:Since many conflicting definitions are used in rotation, being explicit when it comes to naming can help avoid confusion
|
Converting from Vector
As there is no specific datadesc keyfield for angles, one chosen in Hammer will arrive as a vector. Its ordinates will represent degrees of rotation and not coordinates so it must be fixed up before use:
QAngle angMyAngle = QAngle(vecFromHammer.x, vecFromHammer.y, vecFromHammer.z);
// Conversion back to a vector, if required
AngleVectors(angMyAngle, &vecFromHammer);
Presence
See also