public class Acceleration
extends java.lang.Object
This class represents the accelerometer sensor values. It can be used to dispatch the sensor updates to the creative.
| Constructor and Description |
|---|
Acceleration(float x,
float y,
float z,
int watchID)
Constructs a new instance of sensor object with the given parameters.
|
public Acceleration(float x,
float y,
float z,
int watchID)
x - Acceleration minus Gx on the x-axisy - Acceleration minus Gy on the y-axisz - Acceleration minus Gz on the z-axiswatchID - A watch identifier which defined by a creative command.