Show / Hide Table of Contents

Class vCast_Stabilizer

Stabilizer component for syncing synchronizing transform to target transform.
同步 Transform 至目標 Transform 的穩定器組件。

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
vCast_Stabilizer
Namespace: Votanic.vXR.vCast
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
public class vCast_Stabilizer : MonoBehaviour

Fields

lerpFactor

Algorithm factor of stablization.
穩定器算法因子。

Declaration
[Header("[Settings]")]
[Tooltip("Algorithm factor of stablization.\n穩定器算法因子。")]
public float lerpFactor
Field Value
Type Description
System.Single

minAngle

Minimum angle for synchronizing angles.
同步角度的最少角度。

Declaration
[Tooltip("Minimum angle for synchronizing angles.\n同步角度的最少角度。")]
public float minAngle
Field Value
Type Description
System.Single

minDistance

Minimum distance for synchronizing position.
同步位置的最短距離。

Declaration
[Tooltip("Minimum distance for synchronizing position.\n同步位置的最短距離。")]
public float minDistance
Field Value
Type Description
System.Single

positionAxes

Sync position axes.
同步的位置軸。

Declaration
[Tooltip("Sync position axes.\n同步的位置軸。")]
public SyncAxes positionAxes
Field Value
Type Description
SyncAxes

positionOffset

Position offset of synchronization.
同步的位置偏移。

Declaration
[Tooltip("Position offset of synchronization.\n同步的位置偏移。")]
public Vector3 positionOffset
Field Value
Type Description
UnityEngine.Vector3

rotationAxes

Sync rotation axes.
同步的旋轉軸。

Declaration
[Tooltip("Sync rotation axes.\n同步的旋轉軸。")]
public SyncAxes rotationAxes
Field Value
Type Description
SyncAxes

rotationOffset

Rotation offset of synchronization.
同步的角度偏移。

Declaration
[Tooltip("Rotation offset of synchronization.\n同步的角度偏移。")]
public Vector3 rotationOffset
Field Value
Type Description
UnityEngine.Vector3

target

Target synchronizing transform.
目標同步 Transform。

Declaration
[Header("[Components]")]
[Tooltip("Target synchronizing transform.\n目標同步 Transform。")]
public Transform target
Field Value
Type Description
UnityEngine.Transform

worldSpace

Sync target from world space or relative space.
依世界或相對空間同步目標。

Declaration
[Tooltip("Sync target from world space or relative space.\n依世界或相對空間同步目標。")]
public bool worldSpace
Field Value
Type Description
System.Boolean

Methods

RotateAround(Single)

Rotate around the target.
圍繞目標旋轉。

RotateAround(30)

Declaration
public void RotateAround(float angle)
Parameters
Type Name Description
System.Single angle

Rotate angle
旋轉角度

SetPosition(Vector3)

Update the relative position of stabilizer.
更新穩定器相對位置。

SetPosition(Vector3.zero)

Declaration
public void SetPosition(Vector3 localPosition)
Parameters
Type Name Description
UnityEngine.Vector3 localPosition

Relative position to target
在目標的相對位置

SetRotation(Vector3)

Update the relative rotation of stabilizer.
更新穩定器相對角度。

SetPosition(Vector3.zero)

Declaration
public void SetRotation(Vector3 localEulerAngles)
Parameters
Type Name Description
UnityEngine.Vector3 localEulerAngles

Relative euler angles to target
在目標的相對角度

Sync()

Immediately sync transform.
即時同步 Transform。

Declaration
public void Sync()

Tilt(Single)

Tilt up or down the stabilizer.
向上或向下扭動穩定器。

Tilt(10)

Declaration
public void Tilt(float angle)
Parameters
Type Name Description
System.Single angle

Tilt down angle
向下角度

Zoom(Single)

Zoom in or out from the target.
移近或遠目標。

Zoom(1)

Declaration
public void Zoom(float distance)
Parameters
Type Name Description
System.Single distance

Forward distance
向前距離

In This Article
Back to top Generated by DocFX