Class Transformation
Transformation of objects.
物件變換。
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[Serializable]
public class Transformation : Motion
Constructors
Transformation(Single, Single, Single, Single, Single, MotionParameter, SinglePointRepeat, Boolean)
Declare the transformation.
宣告變換。
Declaration
public Transformation(float factor = 1F, float accel = 0F, float decel = 0F, float rotationRatio = 45F, float scalingRatio = 2F, MotionParameter parameter = MotionParameter.Velocity, SinglePointRepeat singlePointRepeat = SinglePointRepeat.None, bool unscaledDeltaTime = false)
Parameters
Type | Name | Description |
---|---|---|
System.Single | factor | Transformation factor value |
System.Single | accel | Transformation accelerating value |
System.Single | decel | Transformation decelerating value |
System.Single | rotationRatio | Relatively rotation angle with 1 metre movement |
System.Single | scalingRatio | Relatively scaling size with 1 metre movement |
MotionParameter | parameter | Transformation calculation parameter |
SinglePointRepeat | singlePointRepeat | Single Point Repeat setting |
System.Boolean | unscaledDeltaTime | Using unscaled delta time if true |
Fields
accelerationFactor
Transformation accelerating value.
變換加速值。
Declaration
[Tooltip("Transformation accelerating value.\n變換加速值。")]
public float accelerationFactor
Field Value
Type | Description |
---|---|
System.Single |
decelerationFactor
Transformation decelerating value.
變換減速值。
Declaration
[Tooltip("Transformation decelerating value.\n變換減速值。")]
public float decelerationFactor
Field Value
Type | Description |
---|---|
System.Single |
parameter
Transformation calculation parameter.
變換計算參數。
Declaration
[Tooltip("Transformation calculation parameter.\n變換計算參數。")]
public MotionParameter parameter
Field Value
Type | Description |
---|---|
MotionParameter |
rotationRatio
Relatively rotation angle with 1 metre movement.
一米移動距離的相對旋轉角度。
Declaration
[Tooltip("Relatively rotation angle with 1 metre movement.\n一米移動距離的相對旋轉角度。")]
public float rotationRatio
Field Value
Type | Description |
---|---|
System.Single |
scalingRatio
Relatively scaling size with 1 metre movement.
一米移動距離的相對縮放大小。
Declaration
[Tooltip("Relatively scaling size with 1 metre movement.\n一米移動距離的相對縮放大小。")]
public float scalingRatio
Field Value
Type | Description |
---|---|
System.Single |
singlePointRepeat
Repeat action setting of a transformer that transform within 1 target point.
變換器重複動作設定,限於一個目標地點以內的變換。
Declaration
[Tooltip("Repeat action setting of a transformer that transform within 1 target point.\n變換器重複動作設定,限於一個目標地點以內的變換。")]
public SinglePointRepeat singlePointRepeat
Field Value
Type | Description |
---|---|
SinglePointRepeat |
transformFactor
Transformation factor value.
變換因子。
Declaration
[Tooltip("Transformation factor value.\n變換因子。")]
public float transformFactor
Field Value
Type | Description |
---|---|
System.Single |
unscaledDeltaTime
Using unscaled delta time if true.
當 true 時使用未縮放的時間變化。
Declaration
[Tooltip("Using unscaled delta time if true.\n當 true 時使用未縮放的時間變化。")]
public bool unscaledDeltaTime
Field Value
Type | Description |
---|---|
System.Boolean |