Game Development Reference
In-Depth Information
start the sensor. Shutting this one down is just a matter of setting the ReportIn-
terval to zero.
This device provides the following information from a reading:
property double PitchDegrees;
property double RollDegrees;
property double YawDegrees;
property DateTime Timestamp;
As shown in the preceding diagram, for this sensor the pitch refers to the rotation
around the x axis (looking up and down). The roll refers to the rotation around the z
axis, which extends away from the player, and the yaw refers to the rotation around
the y axis.
Orientation for games
Aside from the inclinometer, you'll notice that all of the orientation sensors give val-
ues that may not be intuitive to use, and often require extra processing before you
find them useful. WinRT has an API that draws data from all of the available sensors
Search WWH ::




Custom Search