Show / Hide Table of Contents

Class vCast_User

vCast User in XR system .
XR 系統中的 vCast 使用者。

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

Fields

control

User control data.
使用者控制數據。

Declaration
[Header("[Status]")]
[Tooltip("User control data.\n使用者控制數據。")]
public UserControl control
Field Value
Type Description
UserControl

enableRaising

User can auto raise to upper touched floor if true.
當 true 時使用者可自動升上已觸碰的上層地板。

Declaration
[Header("[Settings]")]
[Tooltip("User can auto raise to upper touched floor.\n使用者可自動升上已觸碰的上層地板。")]
public bool enableRaising
Field Value
Type Description
System.Boolean

enableSinking

User can sink to lower floor by controller if true.
當 true 時使用者可透過控制器降落至下層地板。

Declaration
[Tooltip("User can sink to lower floor by controller.\n使用者可透過控制器降落至下層地板。")]
public bool enableSinking
Field Value
Type Description
System.Boolean

isPaused

Return true if the transformation is paused.
當變換暫停時傳回 true。

Declaration
[Tooltip("Return true if the transformation is paused.\n當變換暫停時傳回 true。")]
public bool isPaused
Field Value
Type Description
System.Boolean

isTransforming

Return true if user is transforming.
當使用者變換時傳回 true。

Declaration
[Tooltip("Return true if user is transforming.\n當使用者變換時傳回 true。")]
public bool isTransforming
Field Value
Type Description
System.Boolean

navigator

The transform for checking user navigation direction.
用作檢查使用者導航方向的 Transform。

Declaration
[Tooltip("The transform for checking user navigation direction.\n用作檢查使用者導航方向的 Transform。")]
public Transform navigator
Field Value
Type Description
UnityEngine.Transform

navigatorSetting

Navigator setting.
導航器設定。

Declaration
[Tooltip("Navigator setting.\n導航器設定。")]
public SettingNavigator navigatorSetting
Field Value
Type Description
Votanic.vXR.vCast.Core.SettingNavigator

startAsGround

Determine start point height as ground if no floor is detected.
當沒有地板被偵測時,判斷起點高度為地面。

Declaration
[Tooltip("Determine start point height as ground if no floor is detected.\n當沒有地板被偵測時,判斷起點高度為地面。")]
public bool startAsGround
Field Value
Type Description
System.Boolean

synchronizer

The transform for checking user position and euler angles.
用作檢查使用者位置及角度的 Transform。

Declaration
[Header("[Components]")]
[Tooltip("The transform for checking user position and euler angles.\n用作檢查使用者位置及角度的 Transform。")]
public Transform synchronizer
Field Value
Type Description
UnityEngine.Transform

synchronizerSetting

Synchronizer setting.
同步器設定。

Declaration
[Tooltip("Synchronizer setting.\n同步器設定。")]
public SettingSynchronizer synchronizerSetting
Field Value
Type Description
Votanic.vXR.vCast.Core.SettingSynchronizer

touchWallSetting

The user touchs wall setting.
使用者觸碰牆壁設定。

Declaration
[Tooltip("The user touchs wall setting.\n使用者觸碰牆壁設定。")]
public UserTouchWall touchWallSetting
Field Value
Type Description
UserTouchWall

transition

Transition of user transformation.
使用者變換的過場。

Declaration
[Tooltip("Transition of user transformation.\n使用者變換的過場。")]
public Transition transition
Field Value
Type Description
Transition

unscaledDeltaTime

Using unscaled delta time for height calculation if true.
當 true 時使用未縮放的時間變化於高度計算。

Declaration
[Tooltip("Using unscaled delta time for height calculation.\n使用未縮放的時間變化於高度計算。")]
public bool unscaledDeltaTime
Field Value
Type Description
System.Boolean

walls

The walls touched by user.
使用者觸碰到的牆壁。

Declaration
[Tooltip("The walls touched by user.\n使用者觸碰到的牆壁。")]
public List<vCast_Wall> walls
Field Value
Type Description
System.Collections.Generic.List<vCast_Wall>

Properties

eulerAngles

Return the actual user euler angles in the scene.
傳回使用者在場景中的實際角度。

Declaration
public Vector3 eulerAngles { get; }
Property Value
Type Description
UnityEngine.Vector3

floor

The current floor that user is standing.
使用者目前站立的地板。

Declaration
public Transform floor { get; }
Property Value
Type Description
UnityEngine.Transform

position

Return the actual user position in the scene.
傳回使用者在場景中的實際位置。

Declaration
public Vector3 position { get; }
Property Value
Type Description
UnityEngine.Vector3

rotation

Return the actual user rotation in the scene.
傳回使用者在場景中的實際旋轉。

Declaration
public Quaternion rotation { get; }
Property Value
Type Description
UnityEngine.Quaternion

Methods

EnableAssistNavigator(Boolean)

Enable or disable assist navigators.
啟用或停用輔助導航器。

EnableAssistNavigator(false)

Declaration
public void EnableAssistNavigator(bool enable)
Parameters
Type Name Description
System.Boolean enable

Enable if true
當 true 時啟用

EnableAssistSynchronizer(Boolean)

Enable or disable assist synchronizers.
啟用或停用輔助定位器。

EnableAssistSynchronizer(false)

Declaration
public void EnableAssistSynchronizer(bool enable)
Parameters
Type Name Description
System.Boolean enable

Enable if true
當 true 時啟用

InverseTransformDirection(Single, Single, Single)

Transforms direction from world space to local space.
由世界方向變換為相對方向。

InverseTransformDirection(1, 1, 1)

Declaration
public Vector3 InverseTransformDirection(float x, float y, float z)
Parameters
Type Name Description
System.Single x

Direction X
X 方向

System.Single y

Direction Y
Y 方向

System.Single z

Direction Z
Z 方向

Returns
Type Description
UnityEngine.Vector3

InverseTransformDirection(Vector3)

Transforms direction from world space to local space.
由世界方向變換為相對方向。

InverseTransformDirection(Vector3.one)

Declaration
public Vector3 InverseTransformDirection(Vector3 direction)
Parameters
Type Name Description
UnityEngine.Vector3 direction

Direction
方向

Returns
Type Description
UnityEngine.Vector3

InverseTransformPoint(Single, Single, Single)

Transforms position from world space to local space.
由世界位置變換為相對位置。

InverseTransformPoint(1, 1, 1)

Declaration
public Vector3 InverseTransformPoint(float x, float y, float z)
Parameters
Type Name Description
System.Single x

World X position
世界 X 位置

System.Single y

World Y position
世界 Y 位置

System.Single z

World Z position
世界 Z 位置

Returns
Type Description
UnityEngine.Vector3

InverseTransformPoint(Vector3)

Transforms position from world space to local space.
由世界位置變換為相對位置。

InverseTransformPoint(Vector3.one)

Declaration
public Vector3 InverseTransformPoint(Vector3 worldPosition)
Parameters
Type Name Description
UnityEngine.Vector3 worldPosition

World position
世界位置

Returns
Type Description
UnityEngine.Vector3

InverseTransformVector(Single, Single, Single)

Transforms vector from world space to local space.
由世界向量變換為相對向量。

InverseTransformVector(1, 1, 1)

Declaration
public Vector3 InverseTransformVector(float x, float y, float z)
Parameters
Type Name Description
System.Single x

Vector X
X 向量

System.Single y

Vector Y
Y 向量

System.Single z

Vector Z
Z 向量

Returns
Type Description
UnityEngine.Vector3

InverseTransformVector(Vector3)

Transforms vector from world space to local space.
由世界向量變換為相對向量。

InverseTransformVector(Vector3.one)

Declaration
public Vector3 InverseTransformVector(Vector3 vector)
Parameters
Type Name Description
UnityEngine.Vector3 vector

Vector
向量

Returns
Type Description
UnityEngine.Vector3

LookAt(Transform)

Horziontally rotate user to face target.
將使用者水平旋轉至面向目標。

LookAt(transform)

Declaration
public void LookAt(Transform transform)
Parameters
Type Name Description
UnityEngine.Transform transform

Target transform
目標 Transform

LookAt(Transform, Single, Single, Single, Single, MotionParameter, TransitionMethod, Boolean)

Horziontally rotate user to face target with custom calculation parameter and transition method.
以自定義的過場計算參數及過場方法將使用者水平旋轉至面向目標。

LookAt(transform, 1, 0, 0, 45, MotionParameter.Time, TransitionMethod.Translation)

Declaration
public void LookAt(Transform transform, float factor, float accel, float decel, float rotationRatio, MotionParameter parameter, TransitionMethod method = TransitionMethod.Translation, bool unscaledDeltaTime = false)
Parameters
Type Name Description
UnityEngine.Transform transform

Target transform
目標 Transform

System.Single factor

Transition factor value
過場因子

System.Single accel

Transition accelerating value
過場加速值

System.Single decel

Transition decelerating value
過場減速值

System.Single rotationRatio

Relatively rotation angle with 1 metre movement
一米移動距離的相對旋轉角度

MotionParameter parameter

Transition calculation parameter
過場計算參數

TransitionMethod method

Transition method
過場方法

System.Boolean unscaledDeltaTime

Using unscaled delta time if true
當 true 時使用未縮放的時間變化

LookAt(Transform, MotionParameter, TransitionMethod, Boolean)

Horziontally rotate user to face target with custom calculation parameter and transition method.
以自定義的過場計算參數及過場方法將使用者水平旋轉至面向目標。

LookAt(transform, MotionParameter.Time, TransitionMethod.Translation)

Declaration
public void LookAt(Transform transform, MotionParameter parameter, TransitionMethod method, bool unscaledDeltaTime = false)
Parameters
Type Name Description
UnityEngine.Transform transform

Target transform
目標 Transform

MotionParameter parameter

Transition calculation parameter
過場計算參數

TransitionMethod method

Transition method
過場方法

System.Boolean unscaledDeltaTime

Using unscaled delta time if true
當 true 時使用未縮放的時間變化

LookAt(Vector3)

Horziontally rotate user to face target position.
將使用者水平旋轉至面向目標位置。

LookAt(Vector3.zero)

Declaration
public void LookAt(Vector3 position)
Parameters
Type Name Description
UnityEngine.Vector3 position

Target transform
目標位置

LookAt(Vector3, Single, Single, Single, Single, MotionParameter, TransitionMethod, Boolean)

Horziontally rotate user to face target position by a horizontal angle with custom calculation parameter and transition method.
以自定義的過場計算參數及過場方法將使用者水平旋轉至面向目標位置。

LookAt(Vector3.zero, 1, 0, 0, 45, MotionParameter.Time, TransitionMethod.Translation)

Declaration
public void LookAt(Vector3 position, float factor, float accel, float decel, float rotationRatio, MotionParameter parameter, TransitionMethod method = TransitionMethod.Translation, bool unscaledDeltaTime = false)
Parameters
Type Name Description
UnityEngine.Vector3 position

Target transform
目標位置

System.Single factor

Transition factor value
過場因子

System.Single accel

Transition accelerating value
過場加速值

System.Single decel

Transition decelerating value
過場減速值

System.Single rotationRatio

Relatively rotation angle with 1 metre movement
一米移動距離的相對旋轉角度

MotionParameter parameter

Transition calculation parameter
過場計算參數

TransitionMethod method

Transition method
過場方法

System.Boolean unscaledDeltaTime

Using unscaled delta time if true
當 true 時使用未縮放的時間變化

LookAt(Vector3, MotionParameter, TransitionMethod, Boolean)

Horziontally rotate user to face target position with custom calculation parameter and transition method.
以自定義的過場計算參數及過場方法將使用者水平旋轉至面向目標位置。

LookAt(Vector3.zero, MotionParameter.Time, TransitionMethod.Translation)

Declaration
public void LookAt(Vector3 position, MotionParameter parameter, TransitionMethod method, bool unscaledDeltaTime = false)
Parameters
Type Name Description
UnityEngine.Vector3 position

Target transform
目標位置

MotionParameter parameter

Transition calculation parameter
過場計算參數

TransitionMethod method

Transition method
過場方法

System.Boolean unscaledDeltaTime

Using unscaled delta time if true
當 true 時使用未縮放的時間變化

Move(Vector3)

Move user to the target position.
將使用者移動到目標位置。

Move(new Vector3(0, 0, 1))

Declaration
public void Move(Vector3 position)
Parameters
Type Name Description
UnityEngine.Vector3 position

Target position
目標位置

Move(Vector3, Single, Single, Single, Single, MotionParameter, TransitionMethod, Boolean)

Move user to the target position by custom calculation parameter and transition method.
以自定義的過場計算參數及過場方法將使用者移動到目標位置。

Move(new Vector3(0, 0, 1), 1, 0, 0, 45, MotionParameter.Time, TransitionMethod.Translation)

Declaration
public void Move(Vector3 position, float factor, float accel, float decel, float rotationRatio, MotionParameter parameter, TransitionMethod method = TransitionMethod.Translation, bool unscaledDeltaTime = false)
Parameters
Type Name Description
UnityEngine.Vector3 position

Target position
目標位置

System.Single factor

Transition factor value
過場因子

System.Single accel

Transition accelerating value
過場加速值

System.Single decel

Transition decelerating value
過場減速值

System.Single rotationRatio

Relatively rotation angle with 1 metre movement
一米移動距離的相對旋轉角度

MotionParameter parameter

Transition calculation parameter
過場計算參數

TransitionMethod method

Transition method
過場方法

System.Boolean unscaledDeltaTime

Using unscaled delta time if true
當 true 時使用未縮放的時間變化

Move(Vector3, TransitionMethod, Boolean)

Move user to the target position by custom calculation parameter and transition method.
以自定義的過場計算參數及過場方法將使用者移動到目標位置。

Move(new Vector3(0, 0, 1), MotionParameter.Time, TransitionMethod.Translation)

Declaration
public void Move(Vector3 position, TransitionMethod method, bool unscaledDeltaTime = false)
Parameters
Type Name Description
UnityEngine.Vector3 position

Target position
目標位置

TransitionMethod method

Transition method
過場方法

System.Boolean unscaledDeltaTime

Using unscaled delta time if true
當 true 時使用未縮放的時間變化

ParentToUser(Transform)

Set user as the parent of a transform.
設定使用者為一個 Transform 的母物件。

ParentToUser(transform)

Declaration
public void ParentToUser(Transform transform)
Parameters
Type Name Description
UnityEngine.Transform transform

Target child
目標子物件

ParentToUser(Transform, Vector3, Vector3)

Set user as the parent of a transform.
設定使用者為一個 Transform 的母物件。

ParentToUser(transform, new Vector3(0, 1, 1), new Vector3(15, 0, 0))

Declaration
public void ParentToUser(Transform transform, Vector3 localPosition, Vector3 localEulerAngles)
Parameters
Type Name Description
UnityEngine.Transform transform

Target child
目標子物件

UnityEngine.Vector3 localPosition

Relative position to user
相對於使用者的位置

UnityEngine.Vector3 localEulerAngles

Relative euler angles to user
相對於使用者的角度

PauseTransform()

Pause the current user transformation.
暫停目前使用者的變換過程。

Declaration
public void PauseTransform()

ResetHeight()

Reset the height of user to origin value.
還原使用者高度至原值。

Declaration
public void ResetHeight()

ResetTransform()

Reset user position and euler angles to frame.
還原使用者位置及角度至框架。

Declaration
public void ResetTransform()

ResetWidth()

Reset the width of user to origin value.
還原使用者闊度至原值。

Declaration
public void ResetWidth()

Rotate(Single)

Rotate user by a horizontal angle.
將使用者水平旋轉。

Rotate(90)

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

Rotation angle
旋轉角度

Rotate(Single, Single, Single, Single, Single, MotionParameter, TransitionMethod, Boolean)

Rotate user by a horizontal angle with custom calculation parameter and transition method.
以自定義的過場計算參數及過場方法將使用者水平旋轉。

Rotate(90, 1, 0, 0, 45, MotionParameter.Time, TransitionMethod.Translation)

Declaration
public void Rotate(float angle, float factor, float accel, float decel, float rotationRatio, MotionParameter parameter, TransitionMethod method = TransitionMethod.Translation, bool unscaledDeltaTime = false)
Parameters
Type Name Description
System.Single angle

Rotation angle
旋轉角度

System.Single factor

Transition factor value
過場因子

System.Single accel

Transition accelerating value
過場加速值

System.Single decel

Transition decelerating value
過場減速值

System.Single rotationRatio

Relatively rotation angle with 1 metre movement
一米移動距離的相對旋轉角度

MotionParameter parameter

Transition calculation parameter
過場計算參數

TransitionMethod method

Transition method
過場方法

System.Boolean unscaledDeltaTime

Using unscaled delta time if true
當 true 時使用未縮放的時間變化

Rotate(Single, MotionParameter, TransitionMethod, Boolean)

Rotate user by a horizontal angle with custom calculation parameter and transition method.
以自定義的過場計算參數及過場方法將使用者水平旋轉。

Rotate(90, MotionParameter.Time, TransitionMethod.Translation)

Declaration
public void Rotate(float angle, MotionParameter parameter, TransitionMethod method, bool unscaledDeltaTime = false)
Parameters
Type Name Description
System.Single angle

Rotation angle
旋轉角度

MotionParameter parameter

Transition calculation parameter
過場計算參數

TransitionMethod method

Transition method
過場方法

System.Boolean unscaledDeltaTime

Using unscaled delta time if true
當 true 時使用未縮放的時間變化

SetAcceleration(Single)

Set the acceleration of move, rotate and jump.
設定移動、旋轉及跳躍的加速度。

SetAcceleration(3)

Declaration
public void SetAcceleration(float accel = 3F)
Parameters
Type Name Description
System.Single accel

Acceleration
加速度

SetFadeColor(Color)

Set the user fade color of fade transition.
設定使用者淡出淡入效果的顏色。

SetFadeColor(Color.black)

Declaration
public void SetFadeColor(Color color)
Parameters
Type Name Description
UnityEngine.Color color

Target color
目標顏色

SetFadedDuration(Single)

Set the user faded out duration.
設定使用者淡出持續時間。

SetFadedDuration(0.1f)

Declaration
public void SetFadedDuration(float duration)
Parameters
Type Name Description
System.Single duration

Target duration
目標持續時間

SetFader(Color, Single, Single, Single, MotionParameter)

Set the user fader transition effect.
設定使用者淡出淡入效果。

SetFader(Color.black, 8, 0, 0, MotionParameter.Velocity)

Declaration
public void SetFader(Color color, float factor, float accel, float decel, MotionParameter parameter)
Parameters
Type Name Description
UnityEngine.Color color

Target Color
目標顏色

System.Single factor

Transition factor value
過場因子

System.Single accel

Transition accelerating value
過場加速值

System.Single decel

Transition decelerating value
過場減速值

MotionParameter parameter

Transition calculation parameter
過場計算參數

SetHeight(Single)

Set the height of user.
設定使用者高度。

SetHeight(1.8f)

Declaration
public void SetHeight(float height)
Parameters
Type Name Description
System.Single height

Height of this user
這個使用者的高度

SetJumpHeight(Single)

Set the height of user.
設定使用者高度。

SetJumpHeight(1.5f)

Declaration
public void SetJumpHeight(float height = 1.5F)
Parameters
Type Name Description
System.Single height

Jump height of this user
這個使用者的跳躍高度

SetMoveSpeed(Single)

Set the moving speed of user.
設定使用者移動速度。

SetMoveSpeed(2)

Declaration
public void SetMoveSpeed(float speed = 2F)
Parameters
Type Name Description
System.Single speed

Meter per second
米/秒

SetRotateSpeed(Single)

Set the rotation speed of user.
設定使用者旋轉速度。

SetRotateSpeed(45)

Declaration
public void SetRotateSpeed(float speed = 45F)
Parameters
Type Name Description
System.Single speed

Angle per second
角/秒

SetWidth(Single)

Set the width of user.
設定使用者闊度。

SetWidth(0.5f)

Declaration
public void SetWidth(float width)
Parameters
Type Name Description
System.Single width

Width of this user
這個使用者的闊度

Transform(Transform)

Transform user to the target point.
將使用者變換到目標地點。

Transform(transform)

Declaration
public void Transform(Transform target)
Parameters
Type Name Description
UnityEngine.Transform target

Target Transform
目標的 Transform

Transform(Transform, Single, Single, Single, Single, MotionParameter, TransitionMethod, Boolean)

Transform user to the target point by custom transition setting.
以自定義的過場設定將使用者變換到目標地點。

Transform(transform, 1, 0, 0, 45, MotionParameter.Time, TransitionMethod.Translation)

Declaration
public void Transform(Transform target, float factor, float accel, float decel, float rotationRatio, MotionParameter parameter, TransitionMethod method = TransitionMethod.Translation, bool unscaledDeltaTime = false)
Parameters
Type Name Description
UnityEngine.Transform target

Target transform
目標的 Transform

System.Single factor

Transition factor value
過場因子

System.Single accel

Transition accelerating value
過場加速值

System.Single decel

Transition decelerating value
過場減速值

System.Single rotationRatio

Relatively rotation angle with 1 metre movement
一米移動距離的相對旋轉角度

MotionParameter parameter

Transition calculation parameter
過場計算參數

TransitionMethod method

Transition method
過場方法

System.Boolean unscaledDeltaTime

Using unscaled delta time if true
當 true 時使用未縮放的時間變化

Transform(Transform, TransitionMethod, Boolean)

Transform user to the target point by custom calculation parameter and transition method.
以自定義的過場計算參數及過場方法將使用者變換到目標地點。

Transform(transform, MotionParameter.Time, TransitionMethod.Translation)

Declaration
public void Transform(Transform target, TransitionMethod method, bool unscaledDeltaTime = false)
Parameters
Type Name Description
UnityEngine.Transform target

Target transform
目標的 Transform

TransitionMethod method

Transition method
過場方法

System.Boolean unscaledDeltaTime

Using unscaled delta time if true
當 true 時使用未縮放的時間變化

Transform(Vector3, Vector3)

Transform user to the target position and euler angles.
將使用者變換到目標位置及角度。

Transform(new Vector3(0, 0, 1), Vector3.zero)

Declaration
public void Transform(Vector3 position, Vector3 eulerAngles)
Parameters
Type Name Description
UnityEngine.Vector3 position

Target position
目標位置

UnityEngine.Vector3 eulerAngles

Target euler angles
目標角度

Transform(Vector3, Vector3, Single, Single, Single, Single, MotionParameter, TransitionMethod, Boolean)

Transform user to the target position and euler angles by custom transition setting.
以自定義的過場設定將使用者變換到目標位置及角度。

Transform(new Vector3(0, 0, 1), Vector3.zero, 1, 0, 0, 45, MotionParameter.Time, TransitionMethod.Translation)

Declaration
public void Transform(Vector3 position, Vector3 eulerAngles, float factor, float accel, float decel, float rotationRatio, MotionParameter parameter, TransitionMethod method = TransitionMethod.Translation, bool unscaledDeltaTime = false)
Parameters
Type Name Description
UnityEngine.Vector3 position

Target position
目標位置

UnityEngine.Vector3 eulerAngles

Target euler angles
目標角度

System.Single factor

Transition factor value
過場因子

System.Single accel

Transition accelerating value
過場加速值

System.Single decel

Transition decelerating value
過場減速值

System.Single rotationRatio

Relatively rotation angle with 1 metre movement
一米移動距離的相對旋轉角度

MotionParameter parameter

Transition calculation parameter
過場計算參數

TransitionMethod method

Transition method
過場方法

System.Boolean unscaledDeltaTime

Using unscaled delta time if true
當 true 時使用未縮放的時間變化

Transform(Vector3, Vector3, TransitionMethod, Boolean)

Transform user to the target position and euler angles by custom calculation parameter and transition method.
以自定義的過場計算參數及過場方法將使用者變換到目標位置及角度。

Transform(new Vector3(0, 0, 1), Vector3.zero, MotionParameter.Time, TransitionMethod.Translation)

Declaration
public void Transform(Vector3 position, Vector3 eulerAngles, TransitionMethod method, bool unscaledDeltaTime = false)
Parameters
Type Name Description
UnityEngine.Vector3 position

Target position
目標位置

UnityEngine.Vector3 eulerAngles

Target euler angles
目標角度

TransitionMethod method

Transition method
過場方法

System.Boolean unscaledDeltaTime

Using unscaled delta time if true
當 true 時使用未縮放的時間變化

TransformDirection(Single, Single, Single)

Transforms direction from local space to world space.
由相對方向變換為世界方向。

TransformDirection(1, 1, 1)

Declaration
public Vector3 TransformDirection(float x, float y, float z)
Parameters
Type Name Description
System.Single x

Direction X
X 方向

System.Single y

Direction Y
Y 方向

System.Single z

Direction Z
Z 方向

Returns
Type Description
UnityEngine.Vector3

TransformDirection(Vector3)

Transforms direction from local space to world space.
由相對方向變換為世界方向。

TransformDirection(Vector3.one)

Declaration
public Vector3 TransformDirection(Vector3 direction)
Parameters
Type Name Description
UnityEngine.Vector3 direction

Direction
方向

Returns
Type Description
UnityEngine.Vector3

TransformPoint(Single, Single, Single)

Transforms position from local space to world space.
由相對位置變換為世界位置。

TransformPoint(1, 1, 1)

Declaration
public Vector3 TransformPoint(float x, float y, float z)
Parameters
Type Name Description
System.Single x

Relative X position to user
在使用者中的相對 X 位置

System.Single y

Relative Y position to user
在使用者中的相對 Y 位置

System.Single z

Relative Z position to user
在使用者中的相對 Z 位置

Returns
Type Description
UnityEngine.Vector3

TransformPoint(Vector3)

Transforms position from local space to world space.
由相對位置變換為世界位置。

TransformPoint(Vector3.one)

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

Relative position to user
在使用者中的相對位置

Returns
Type Description
UnityEngine.Vector3

TransformVector(Single, Single, Single)

Transforms vector from local space to world space.
由相對向量變換為世界向量。

TransformVector(1, 1, 1)

Declaration
public Vector3 TransformVector(float x, float y, float z)
Parameters
Type Name Description
System.Single x

Vector X
X 向量

System.Single y

Vector Y
Y 向量

System.Single z

Vector Z
Z 向量

Returns
Type Description
UnityEngine.Vector3

TransformVector(Vector3)

Transforms vector from local space to world space.
由相對向量變換為世界向量。

TransformVector(Vector3.one)

Declaration
public Vector3 TransformVector(Vector3 vector)
Parameters
Type Name Description
UnityEngine.Vector3 vector

Vector
向量

Returns
Type Description
UnityEngine.Vector3

UnPauseTransform()

UnPause the current user transformation.
取消暫停目前使用者的變換過程。

Declaration
public void UnPauseTransform()
In This Article
Back to top Generated by DocFX