|
|
(71 intermediate revisions by 39 users not shown) |
Line 1: |
Line 1: |
| [http://geekphilosopher.com/catalog/images/thumbs/wgievc.html amateur blow job] [http://www.ashtraypunks.com/forum/templates/subSilver/images/lang_english/gif/pfbjpe.html unlisted phone number] [http://geekphilosopher.com/catalog/images/thumbs/kktdfp.html name a star] [http://www.ashtraypunks.com/forum/templates/subSilver/images/lang_english/gif/vpsxbi.html mature gay sex] [http://www.terauto.com/phpmychat/chat/localization/czech/tmp/rwxotc.html handjob sex] [http://iagsdc.net/test/main/tempimage/imaes/wxxrhe.html web cam sex] [http://iagsdc.net/test/main/tempimage/imaes/ecmmkm.html flash memory] [http://joshuapettigrew.com/Blog/wp-content/backup-4be0e/cache/tuhlfr.html metrogel] [http://kobibankaciligi.org/image/pics/umawtp.html rowe furniture] [http://nmhswh.com/bugzilla/temp/xriori.html flights to manchester england] [http://mitcomputers.ca/bbs/templates/subSilver/images/lang_english/icons/gjekev.html information on metformin] [http://blazing.ws/catalog/images/gif/gvuaoa.html liver problems] [http://mitcomputers.ca/bbs/templates/subSilver/images/lang_english/icons/vdeogb.html topamax] [http://kobibankaciligi.org/image/pics/fjntup.html elavil] [http://notpurfect.com/guest/tmp/cache/kkxclf.html wrangler jeans] [http://substantiel.net/forum/tmp/cache/kptmvw.html carnival cruises] [http://iagsdc.net/test/main/tempimage/imaes/ekocww.html bollywood wallpaper] [http://blazing.ws/catalog/images/gif/btqjeq.html wireless modem] [http://blazing.ws/catalog/images/gif/gmctdq.html straightcollegemen com] [http://kobibankaciligi.org/image/pics/uxakav.html ancient chinese food] [http://blazing.ws/catalog/images/gif/xundvr.html free cricket ringtone] [http://www.webmeester.com/hhgchat/chat/localization/argentinian_spanish/cache/xaaqrd.html orchid] [http://nmhswh.com/bugzilla/temp/kinmxl.html bracelets] [http://nmhswh.com/bugzilla/temp/hdipiq.html granny pornos] [http://notpurfect.com/guest/tmp/cache/haqpwn.html free mature porn video] [http://geekphilosopher.com/catalog/images/thumbs/nwaflb.html learning japanese online for free] [http://kobibankaciligi.org/image/pics/uimaid.html t mobile sidekick] [http://substantiel.net/forum/tmp/cache/kwrvec.html fta files] [http://iagsdc.net/test/main/tempimage/imaes/cocmfj.html jamster ringtone] [http://geekphilosopher.com/catalog/images/thumbs/jvtaxs.html hot japanese girls] [http://www.zoemargo.com/phpbb2/images/smiles/icon/nhjcjx.html furnace parts] [http://geekphilosopher.com/catalog/images/thumbs/sbxvov.html budget rental] [http://www.terauto.com/phpmychat/chat/localization/czech/tmp/dspjxr.html ink refill machine] [http://kobibankaciligi.org/image/pics/ljbgsg.html freightliner] [http://rsinfocon.com/forum/chat/localization/spanish/cache/vongke.html bus tour] [http://engelmania.com/ploggerb3/images/pics/pcqbso.html buy xenical cheap] [http://dubaisail.com/dm/downloads/fs47280760/cache/uqhaag.html men health] [http://dubaisail.com/dm/downloads/fs47280760/cache/rijwrl.html linksys router] [http://rsinfocon.com/forum/chat/localization/spanish/cache/kfvkxg.html cheetah girl pictures] [http://www.zoemargo.com/phpbb2/images/smiles/icon/gpnstm.html bmi airlines] [http://rsinfocon.com/forum/chat/localization/spanish/cache/mvsgjq.html trading times] [http://engelmania.com/ploggerb3/images/pics/kkusef.html cheap plane ticket] [http://nmhswh.com/bugzilla/temp/kuluws.html cunts] [http://mistressenya.com/ikonboard/ib311/Tools/HELP/cache/osssod.html tv guide] [http://mistressenya.com/ikonboard/ib311/Tools/HELP/cache/jnttgb.html baby boys names] [http://saskindekorasyon.com/sitebcx/_files/newspublish/tmp/ *3tvkvco.html rosetti handbags] [http://madisonfd.com/images/pics/small/nhnaih.html singles dating online] [http://madisonfd.com/images/pics/small/dxwpdv.html granny porn] [http://substantiel.net/forum/tmp/cache/nnqcux.html christina model] [http://iagsdc.net/test/main/tempimage/imaes/hvbkts.html doujinshi] [http://www.ashtraypunks.com/forum/templates/subSilver/images/lang_english/gif/uhdmfi.html xxx sex] [http://rsinfocon.com/forum/chat/localization/spanish/cache/kwqtqj.html stepper motors] [http://www.terauto.com/phpmychat/chat/localization/czech/tmp/xatpqt.html alitalia] [http://www.webmeester.com/hhgchat/chat/localization/argentinian_spanish/cache/idtpgw.html video sex] [http://madisonfd.com/images/pics/small/gscndr.html celebrity poker] [http://engelmania.com/ploggerb3/images/pics/lwrvdg.html sex porno] [http://joshuapettigrew.com/Blog/wp-content/backup-4be0e/cache/porlhu.html stoves] [http://geekphilosopher.com/catalog/images/thumbs/ftmqog.html moms anal adventure] [http://www.ashtraypunks.com/forum/templates/subSilver/images/lang_english/gif/rqmqhi.html henri matisse painting] [http://engelmania.com/ploggerb3/images/pics/cnlatd.html puppy catalogs] [http://mistressenya.com/ikonboard/ib311/Tools/HELP/cache/kgxaec.html pontiac trans am] [http://kobibankaciligi.org/image/pics/qxbjln.html engineering dictionary] [http://derzulya.com/gizli/Themes/default/images/brazilian/baners/msnpbp.html smart amazing phone] [http://joshuapettigrew.com/Blog/wp-content/backup-4be0e/cache/fnkijr.html wedding vows] [http://joshuapettigrew.com/Blog/wp-content/backup-4be0e/cache/pbtnwk.html fast money] [http://www.webmeester.com/hhgchat/chat/localization/argentinian_spanish/cache/uncxfl.html jaguar xkr] [http://joshuapettigrew.com/Blog/wp-content/backup-4be0e/cache/piauis.html chris brown layouts] [http://blazing.ws/catalog/images/gif/rvbbiw.html delta airline flight schedule] [http://www.webmeester.com/hhgchat/chat/localization/argentinian_spanish/cache/pjrxdp.html mario] [http://www.webmeester.com/hhgchat/chat/localization/argentinian_spanish/cache/vqbvxs.html cheap wedding gowns] [http://iagsdc.net/test/main/tempimage/imaes/cwqweo.html the girl from ipanema] [http://joshuapettigrew.com/Blog/wp-content/backup-4be0e/cache/echgjc.html government liquidation] [http://iagsdc.net/test/main/tempimage/imaes/nkpfbc.html kitchen countertops] [http://engelmania.com/ploggerb3/images/pics/heujgp.html bugaboo strollers] [http://nmhswh.com/bugzilla/temp/agegik.html kaspersky] [http://blazing.ws/catalog/images/gif/vsrjwf.html sex world] [http://mistressenya.com/ikonboard/ib311/Tools/HELP/cache/ggbrdv.html mbna america bank] [http://mitcomputers.ca/bbs/templates/subSilver/images/lang_english/icons/oeovtc.html skateboarding ramp] [http://derzulya.com/gizli/Themes/default/images/brazilian/baners/gghubk.html concrete roof tiles] [http://www.zoemargo.com/phpbb2/images/smiles/icon/tesbbo.html arab radio tv] [http://saskindekorasyon.com/sitebcx/_files/newspublish/tmp/ *3ltnuxr.html go phone] [http://notpurfect.com/guest/tmp/cache/dabbsw.html interior decorating] [http://blazing.ws/catalog/images/gif/jbmqsg.html mariah carey nude] [http://engelmania.com/ploggerb3/images/pics/oieogq.html charlotte airport] [http://iagsdc.net/test/main/tempimage/imaes/ugqxoc.html game hentai] [http://mistressenya.com/ikonboard/ib311/Tools/HELP/cache/tqaiup.html electric motor wiring diagrams] [http://substantiel.net/forum/tmp/cache/kfiist.html free adult personals] [http://blazing.ws/catalog/images/gif/admhmm.html calorad] [http://engelmania.com/ploggerb3/images/pics/pktcha.html comic xxx] [http://substantiel.net/forum/tmp/cache/iornxt.html seimens mobile phone] [http://blazing.ws/catalog/images/gif/iricvd.html sportsbook] [http://mistressenya.com/ikonboard/ib311/Tools/HELP/cache/udppwo.html quadriderm] [http://iagsdc.net/test/main/tempimage/imaes/ewwveb.html pedicure] [http://substantiel.net/forum/tmp/cache/wluiat.html shower curtain] [http://kobibankaciligi.org/image/pics/xgdpfm.html braided rug] [http://geekphilosopher.com/catalog/images/thumbs/xjvcsn.html student airfare] [http://baselkriterleri.com/sitebcx/_files/photogallery/photo/dxrqjx.html bearshar] [http://baselkriterleri.com/sitebcx/_files/photogallery/photo/rqtxsd.html wetpanties] [http://rsinfocon.com/forum/chat/localization/spanish/cache/kchroa.html horny house wives] [http://madisonfd.com/images/pics/small/dutksn.html jaime pressly naked] | | {{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