言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Gyroscope

Namespace: UnityEngine

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

ジャイロスコープにアクセスするクラスです。

このクラスを使用してジャイロスコープにアクセスして下さい。

Variables

attitude デバイスの傾き具合を返します
enabled ジャイロスコープの状態を設定または返す
gravity デバイスの参照フレームでの正確な重力加速度のベクトルを返します
rotationRate デバイスのジャイロスコープで測定された回転率を返します
rotationRateUnbiased デバイスのジャイロスコープで測定されたバイアスなしの回転率を返します
updateInterval 秒単位のジャイロスコープの間隔を設定/取得します
userAcceleration ユーザーが与える加速度を返します