public class Gyro
extends java.lang.Object
This class represents the gyroscope sensor values. It can be used to dispatch the sensor updates to the creative.
| Constructor and Description |
|---|
Gyro(float x,
float y,
float z,
int watchID)
Constructs a new instance of sensor object with the given parameters.
|
public Gyro(float x,
float y,
float z,
int watchID)
x - Angular speed around the x-axis.y - Angular speed around the y-axisz - Angular speed around the z-axiswatchID - A watch identifier which defined by a creative command.