Class: Accelerometer

Accelerometer

new Accelerometer()

Holds the current orientation of the device if the device has an accelerometer. An instance of Accelerometer is available as Splat.Game#accelerometer.
Source:

Members

alpha :number

The angle of the device rotated around the z-axis. The z-axis is the axis coming out of the device screen. alpha represents how much the devies is spun around the center of the screen.
Type:
  • number
Source:

beta :number

The angle of the device rotated around the x-axis. The x-axis is horizontal across the device screen. beta represents how much the device is tilted forward or backward.
Type:
  • number
Source:

gamma :number

The angle of the device rotated around the y-axis. The y-axis is vertical across the device screen. gamma represents how much the device is turned left or right.
Type:
  • number
Source: