Cocos Creator API

1.5.x

Cocos Creator is the game engine for the future.

Acceleration

Module: cc
Parent Module: cc

the device accelerometer reports values for each axis in units of g-force.

Methods

constructor
(
  • x
  • y
  • z
  • timestamp
)

name type description
x Number
y Number
z Number
timestamp Number

There are no methods that match your current filter settings. You can change your filter settings in the index section on this page. index