Cocos Creator API

1.0.0

Cocos Creator is a highly customizable game development tool that utilizes the power of cocos2d-x.

Acceleration

Module: cc

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

Methods

Acceleration
(
  • x
  • y
  • z
  • timestamp
)
Acceleration

name type description
x Number
y Number
z Number
timestamp Number

returns:

type: Acceleration

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