Gyroscope 陀螺Interface into the Gyroscope. 陀螺接口。 Use this class to access gyroscope. 使用这个类访问陀螺。 Variables变量
Returns rotation rate as measured by the device's gyroscope. 返回设备陀螺仪测量的旋转速率。 Returns unbiased rotation rate as measured by the device's gyroscope. 返回由设备陀螺仪测量的无偏旋转速率。 Returns the gravity acceleration vector expressed in the device's reference frame. 返回在设备参考帧的重力加速度。 Returns the acceleration that the user is giving to the device. 返回用户提供给设备的加速度。 Returns the attitude of the device. 返回设备的姿态。 Sets or retrieves status of this gyroscope. 设置或检索该陀螺仪的状态。 Sets or retrieves gyroscope interval in seconds. 设置或检索该陀螺仪的间隔,以秒为单位。 Gyroscope.rotationRate 旋转速率var rotationRate : Vector3 Description描述 Returns rotation rate as measured by the device's gyroscope. 返回设备陀螺仪测量的旋转速率。 ———————————————————————— Gyroscope.rotationRateUnbiased 无偏旋转速率var rotationRateUnbiased : Vector3 Description描述 Returns unbiased rotation rate as measured by the device's gyroscope. 返回由设备陀螺仪测量的无偏旋转速率。 —————————————————————————————————————— Gyroscope.gravity 重力var gravity : Vector3 Description描述 Returns the gravity acceleration vector expressed in the device's reference frame. 返回在设备参考帧的重力加速度。 ———————————————————————————————————————— Gyroscope.userAcceleration 用户加速度var userAcceleration : Vector3 Description描述 Returns the acceleration that the user is giving to the device. 返回用户提供给设备的加速度 ——————————————————————————————————————-- Gyroscope.attitude 姿态var attitude : Quaternion Description描述 Returns the attitude of the device. 返回设备的姿态。 —————————————————————— Gyroscope.enabled 启用var enabled : boolean Description描述 Sets or retrieves status of this gyroscope. 设置或检索该陀螺仪的状态。 ———————————————————— Gyroscope.updateInterval 更新间隔var updateInterval : float Description描述 Sets or retrieves gyroscope interval in seconds. 设置或检索该陀螺仪的间隔,以秒为单位。 |
|