表示テーマ
HingeJoint
指定した軸の周りで回転できる関節を作ります。
型の情報
- 名前空間:
NEMEngine - 型:
NEMEngine.HingeJoint(Class) - 継承元:NEMEngine.Component
- Inspector:HingeJoint
Anchor
csharp
public Vector3 Anchor自分側の接続基準位置です。
操作:読取・変更。
対応するInspector:HingeJoint。
AutoConfigureConnectedAnchor
csharp
public bool AutoConfigureConnectedAnchor接続先側のAnchorを配置から自動設定します。
操作:読取・変更。
対応するInspector:HingeJoint。
Axis
csharp
public Vector3 Axis形状・回転・関節などの基準軸です。
操作:読取・変更。
対応するInspector:HingeJoint。
ConnectedAnchor
csharp
public Vector3 ConnectedAnchor接続先側の接続基準位置です。
操作:読取・変更。
対応するInspector:HingeJoint。
ConnectedBody
csharp
public GameObject? ConnectedBody接続先RigidbodyのGameObjectを保存用IDで指定します。
操作:読取・変更。
対応するInspector:HingeJoint。
Enabled
csharp
public bool EnabledこのComponentの処理を有効にします。GameObject全体のアクティブ状態とは別です。
操作:読取・変更。
対応するInspector:HingeJoint。
FromEntity
csharp
public static HingeJoint FromEntity(GameObject gameObject)既にComponentを持つGameObjectから操作用の参照を作ります。Componentを追加する操作ではありません。
| 引数 | 型 | 既定値 |
|---|---|---|
gameObject | NEMEngine.GameObject | 必須 |
戻り値:NEMEngine.HingeJoint。
MaxAngle
csharp
public float MaxAngle関節の回転角度の上限です。
操作:読取・変更。
対応するInspector:HingeJoint。
MinAngle
csharp
public float MinAngle関節の回転角度の下限です。
操作:読取・変更。
対応するInspector:HingeJoint。
UseLimits
csharp
public bool UseLimits関節の角度制限を有効にします。
操作:読取・変更。
対応するInspector:HingeJoint。
componentTypeID
csharp
public static int componentTypeID組み込みComponentの接続識別子です。通常のゲームコードではGetComponentで取得します。
操作:読取専用。
実行時の扱い
Nativeと接続する操作は、Scriptが実行される有効なWorld内で使用します。破棄したGameObjectやComponentへのアクセスは避けてください。設定Snapshotは取得・編集・反映を1組で扱います。