Show / Hide Table of Contents

Class vCast_Teleport

Teleport tool of vCast controller.
vCast 控制器的傳送工具。

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

Fields

cancelToolAngle

Tilt angle to auto switch default tool.
自動轉回預設工具的仰角。

Declaration
[Header("[Settings]")]
[Tooltip("Tilt angle to auto switch default tool.\n自動轉回預設工具的仰角。")]
public float cancelToolAngle
Field Value
Type Description
System.Single

isApplying

Return true if the tool is applying.
當工具使用時傳回 true。

Declaration
[Header("[Status]")]
[Tooltip("Return true if the tool is applying.\n當工具使用時傳回 true。")]
public bool isApplying
Field Value
Type Description
System.Boolean

isHitFloor

Return true if the teleport line hits floor.
當傳送線打中地板時傳回 true。

Declaration
[Tooltip("Return true if the teleport line hits floor.\n當傳送線打中地板時傳回 true。")]
public bool isHitFloor
Field Value
Type Description
System.Boolean

outOfRange

Return true if tilt angle is larger than cancelToolAngle.
當仰角大於 cancelToolAngle 時傳回 true。

Declaration
[Tooltip("Return true if tilt angle is larger than cancelToolAngle.\n當仰角大於 cancelToolAngle 時傳回 true。")]
public bool outOfRange
Field Value
Type Description
System.Boolean

projectile

Teleport line setting.
傳送線設定。

Declaration
[Tooltip("Teleport line setting.\n傳送線設定。")]
public TeleportProjectile projectile
Field Value
Type Description
Votanic.vXR.vCast.TeleportProjectile

resetVelocity

Reset the projectile velocity after a teleportation.
傳送後重置拋物線速度。

Declaration
[Tooltip("Reset the projectile velocity after a teleportation.\n傳送後重置拋物線速度。")]
public bool resetVelocity
Field Value
Type Description
System.Boolean

rotateSpeed

Rotate speed of the teleport point display image.
傳送地點顯示影像的旋轉速度。

Declaration
[Tooltip("Rotate speed of the teleport point display image.\n傳送地點顯示影像的旋轉速度。")]
public float rotateSpeed
Field Value
Type Description
System.Single

Properties

targetPoint

The hit point of teleport line.
傳送線的落腳點。

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

Methods

Apply(Boolean)

Apply or unapply teleport tool.
使用或不使用傳送工具。

Apply(true)

Declaration
public void Apply(bool apply)
Parameters
Type Name Description
System.Boolean apply

Apply if true
當 true 時使用

CanStand()

Return true if the destination can be stand.
當目的地可站立時傳回 true。

Declaration
public virtual bool CanStand()
Returns
Type Description
System.Boolean

SetVelocity(Single)

Set the velocity of teleport projectile.
設定傳送拋物線的速度。

SetVelocity(10)

Declaration
public void SetVelocity(float velocity = 10F)
Parameters
Type Name Description
System.Single velocity

Velocity
速度

In This Article
Back to top Generated by DocFX