示例#1
0
 //this initializes the input variables
 public JoviosAccelerometer(JoviosAccelerometerStyle newAccelerometerStyle)
 {
     accelerometerStyle = newAccelerometerStyle;
     gyro         = Quaternion.identity;
     acceleration = Vector3.zero;
     JSON         = "{'type':'accelerometer', 'style':'" + newAccelerometerStyle.ToString().ToLower() + "'}";
 }
示例#2
0
 public void SetAccelerometerStyle(JoviosAccelerometerStyle newStyle)
 {
     accelerometerStyle = newStyle;
     JSON = "{'type':'accelerometer', 'style':'" + newStyle.ToString().ToLower() + "'}";
 }