Class GrabSetting
Grab setting of interactables.
交互物抓握設定。
Inheritance
System.Object
GrabSetting
Namespace: Votanic.vXR
Assembly: Votanic.vXR.dll
Syntax
[Serializable]
public class GrabSetting
Constructors
GrabSetting()
Declare a grab setting.
宣告一個抓握設定。
Declaration
public GrabSetting()
Fields
fixedJoint
Decide generate fixed joint or not.
決定是否生成固定關節。
Declaration
[Tooltip("Decide generate fixed joint or not.\n決定是否生成固定關節。")]
public bool fixedJoint
Field Value
Type | Description |
---|---|
System.Boolean |
grabbable
Decide the interactables can be grabbed or not.
決定交互物能否被抓握。
Declaration
[Tooltip("Decide the interactables can be grabbed or not.\n決定交互物能否被抓握。")]
public bool grabbable
Field Value
Type | Description |
---|---|
System.Boolean |
kinematic
Decide the rigidbody is kinematic or not.
決定是否運動學剛體。
Declaration
[Tooltip("Decide the rigidbody is kinematic or not.\n決定是否運動學剛體。")]
public bool kinematic
Field Value
Type | Description |
---|---|
System.Boolean |
parentBack
Decide parent back to origin parent or not.
決定是否依附回原母物件。
Declaration
[Tooltip("Decide parent back to origin parent or not.\n決定是否依附回原母物件。")]
public bool parentBack
Field Value
Type | Description |
---|---|
System.Boolean |
parentConstraint
Grab by Parent Constraint.
使用母約束進行抓握。
Declaration
[Tooltip("Grab by Parent Constraint.\n使用母約束進行抓握。")]
public bool parentConstraint
Field Value
Type | Description |
---|---|
System.Boolean |
parentToController
Decide parent to controller or not.
決定是否依附母物件。
Declaration
[Tooltip("Decide parent to controller or not.\n決定是否依附母物件。")]
public bool parentToController
Field Value
Type | Description |
---|---|
System.Boolean |
pickable
Decide the interactables can be picked or not.
決定交互物能否被拾起。
Declaration
[Tooltip("Decide the interactables can be picked or not.\n決定交互物能否被拾起。")]
public bool pickable
Field Value
Type | Description |
---|---|
System.Boolean |
pickToGrab
Able to change grab from pick so that the interactables can be ungrabbed.
能夠將拾起狀態改為抓握,使交互物可被放開。
Declaration
[Tooltip("Able to change grab from pick so that the interactables can be ungrabbed.\n能夠將拾起狀態改為抓握,使交互物可被放開。")]
public bool pickToGrab
Field Value
Type | Description |
---|---|
System.Boolean |
positionOffset
The zero position offset.
位置零值偏移。
Declaration
[Tooltip("The zero position offset.\n位置零值偏移。")]
public Vector3 positionOffset
Field Value
Type | Description |
---|---|
UnityEngine.Vector3 |
rotationOffset
The zero euler angles offset.
角度零值偏移。
Declaration
[Tooltip("The zero euler angles offset.\n角度零值偏移。")]
public Vector3 rotationOffset
Field Value
Type | Description |
---|---|
UnityEngine.Vector3 |
zeroTransform
Decide the local position and euler angles are set to zero or not for grab.
決定是否在抓握時將自身位置及角度設定為零值。
Declaration
[Tooltip("Decide the local position and euler angles are set to zero or not for grab.\n決定是否在抓握時將自身位置及角度設定為零值。")]
public bool zeroTransform
Field Value
Type | Description |
---|---|
System.Boolean |