コンフィグ ジョイント
固定ジョイント

Constant Force (一定力)

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

Constant Force は,Rigidbody に一定力を素早く加えるためのユーティリティです。 これは,初速を大きくせずに,加速を重視する場合,例えばロケットのようなワンショットのオブジェクトに最適です。

プロパティ

プロパティ: 特徴:
Force The vector of a force to be applied in world space.
Relative Force The vector of a force to be applied in the object’s local space.
Torque The vector of a torque, applied in world space. The object will begin spinning around this vector. The longer the vector is, the faster the rotation.
Relative Torque Relative Torque ローカル空間で適用されるトルクのベクトル。 オブジェクトが,このベクトル_周辺_で回転し始めます。 ベクトルが長いほど,回転が速くなります。

詳細

加速しながら前進するロケットを作成するには,Relative Forceを正の Z 軸に沿って設定します。 次に, Rigidbod yの_Drag_プロパティを使用して,一定の最大速度を超えないようにします (ドラッグが高くなるほど,最大速度が下がります)。 Rigidbody で,ロケットが常に軌道上にあるよう,重力をオフにします。

ヒント

  • オブジェクトを上に流すには,正の Y 値のある_Force_プロパティを持つ一定力を追加します。
  • オブジェクトを上に飛ばすには,正の Z 値のある_Relative Force_プロパティを持つ一定力を追加します。
コンフィグ ジョイント
固定ジョイント