PlanetQuake ArghRad Tutorial: Aiming with Pitch and Yaw

PlanetQuake ArghRad Tutorial: Aiming with Pitch and Yaw

Angle aiming in ArghRad uses two angle measurements to determine direction. The first is yaw, and the second is pitch. Yaw is the rotation horizontally. Everything that uses an angle key, such as doors, monsters, or player starts, uses the yaw value since the vertical rotation is not important. Yaw is measured from 0 (the positive x axis) to 360 (the same as 0) counterclockwise.

The second angle is the pitch. Pitch measures the angle up or down. A value of -90 will result in an aim pointing straight down (regardless of the yaw), and an angle of 90 will result in an aim pointing straight up.

An angle aimed at 180 -45 will be pointing toward the negative x axis (left, if viewed from above on the xy plane) and 45 degrees down.

https://web.archive.org/web/20010107082900/http://www.planetquake.com:80/arghrad/tutorials/tut03/tut03.html

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.