Documentation for the Unity C# Library
Loading...
Searching...
No Matches
LaserMovable Class Reference
Inheritance diagram for LaserMovable:
[legend]

Public Member Functions

virtual void Awake ()
 
virtual void OnTriggerGrab (Hand hand, Grabbable grabbable)
 
virtual void OnTriggerReleased (Hand hand, Grabbable grabbable)
 
virtual void StartTargeting ()
 
virtual void StopTargeting ()
 

Properties

bool IsPulling [get, set]
 
bool IsTargeted [get, set]
 

Private Member Functions

float GetCurrentHandYAxis ()
 
void MoveAlongRay (float moveDirection)
 
void OnDisable ()
 
void OnEnable ()
 
void OnStartTargeting (Hand hand, Grabbable grabbable)
 
void OnStopTargeting (Hand hand, Grabbable grabbable)
 
void OnTriggerPressed (Hand hand)
 
void OnTriggerReleased (Hand hand)
 
void Update ()
 

Private Attributes

Hand _currentSelectingHand
 
DistanceGrabbable _distanceGrabbable
 [SerializeField]
 
Vector3 _initialPosition
 
InputListener _inputListener
 
Quaternion _intitialRotation
 
bool _invertedForward = true
 [SerializeField]
 
Transform _previousParent = null
 
Quaternion _rotationOnGrab
 
RotationOnRelease _rotationOnRelease = RotationOnRelease.Initial
 [SerializeField]
 
bool _startedSelecting = false
 
Transform _transformToMove
 [SerializeField]
 
float _zoomInSpeed = 2
 [SerializeField]
 

Static Private Attributes

const float MAX_DISTANCE = 15
 
const float MIN_DISTANCE = 1
 

Detailed Description

Definition at line 20 of file LaserMovable.cs.

Member Function Documentation

◆ Awake()

virtual void LaserMovable.Awake ( )
inlinevirtual

Reimplemented in PixoVR.Event.LaserMovableWithOutline.

Definition at line 57 of file LaserMovable.cs.

◆ GetCurrentHandYAxis()

float LaserMovable.GetCurrentHandYAxis ( )
inlineprivate

Definition at line 161 of file LaserMovable.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MoveAlongRay()

void LaserMovable.MoveAlongRay ( float moveDirection)
inlineprivate

Definition at line 141 of file LaserMovable.cs.

Here is the caller graph for this function:

◆ OnDisable()

void LaserMovable.OnDisable ( )
inlineprivate

Definition at line 105 of file LaserMovable.cs.

Here is the call graph for this function:

◆ OnEnable()

void LaserMovable.OnEnable ( )
inlineprivate

Definition at line 64 of file LaserMovable.cs.

Here is the call graph for this function:

◆ OnStartTargeting()

void LaserMovable.OnStartTargeting ( Hand hand,
Grabbable grabbable )
inlineprivate

Definition at line 167 of file LaserMovable.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnStopTargeting()

void LaserMovable.OnStopTargeting ( Hand hand,
Grabbable grabbable )
inlineprivate

Definition at line 182 of file LaserMovable.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnTriggerGrab()

virtual void LaserMovable.OnTriggerGrab ( Hand hand,
Grabbable grabbable )
inlinevirtual

Reimplemented in PixoVR.Event.LaserMovableWithOutline.

Definition at line 197 of file LaserMovable.cs.

Here is the caller graph for this function:

◆ OnTriggerPressed()

void LaserMovable.OnTriggerPressed ( Hand hand)
inlineprivate

Definition at line 242 of file LaserMovable.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnTriggerReleased() [1/2]

void LaserMovable.OnTriggerReleased ( Hand hand)
inlineprivate

Definition at line 250 of file LaserMovable.cs.

Here is the call graph for this function:

◆ OnTriggerReleased() [2/2]

virtual void LaserMovable.OnTriggerReleased ( Hand hand,
Grabbable grabbable )
inlinevirtual

Reimplemented in PixoVR.Event.LaserMovableWithOutline.

Definition at line 209 of file LaserMovable.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ StartTargeting()

virtual void LaserMovable.StartTargeting ( )
inlinevirtual

Reimplemented in PixoVR.Event.LaserMovableWithOutline.

Definition at line 178 of file LaserMovable.cs.

Here is the caller graph for this function:

◆ StopTargeting()

virtual void LaserMovable.StopTargeting ( )
inlinevirtual

Reimplemented in PixoVR.Event.LaserMovableWithOutline.

Definition at line 193 of file LaserMovable.cs.

Here is the caller graph for this function:

◆ Update()

void LaserMovable.Update ( )
inlineprivate

Definition at line 124 of file LaserMovable.cs.

Here is the call graph for this function:

Member Data Documentation

◆ _currentSelectingHand

Hand LaserMovable._currentSelectingHand
private

Definition at line 46 of file LaserMovable.cs.

◆ _distanceGrabbable

DistanceGrabbable LaserMovable._distanceGrabbable
privateSerializeField

[SerializeField]

Definition at line 29 of file LaserMovable.cs.

◆ _initialPosition

Vector3 LaserMovable._initialPosition
private

Definition at line 51 of file LaserMovable.cs.

◆ _inputListener

InputListener LaserMovable._inputListener
private

Definition at line 53 of file LaserMovable.cs.

◆ _intitialRotation

Quaternion LaserMovable._intitialRotation
private

Definition at line 52 of file LaserMovable.cs.

◆ _invertedForward

bool LaserMovable._invertedForward = true
privateSerializeField

[SerializeField]

Definition at line 41 of file LaserMovable.cs.

◆ _previousParent

Transform LaserMovable._previousParent = null
private

Definition at line 49 of file LaserMovable.cs.

◆ _rotationOnGrab

Quaternion LaserMovable._rotationOnGrab
private

Definition at line 50 of file LaserMovable.cs.

◆ _rotationOnRelease

RotationOnRelease LaserMovable._rotationOnRelease = RotationOnRelease.Initial
privateSerializeField

[SerializeField]

Definition at line 33 of file LaserMovable.cs.

◆ _startedSelecting

bool LaserMovable._startedSelecting = false
private

Definition at line 55 of file LaserMovable.cs.

◆ _transformToMove

Transform LaserMovable._transformToMove
privateSerializeField

[SerializeField]

Definition at line 25 of file LaserMovable.cs.

◆ _zoomInSpeed

float LaserMovable._zoomInSpeed = 2
privateSerializeField

[SerializeField]

Definition at line 37 of file LaserMovable.cs.

◆ MAX_DISTANCE

const float LaserMovable.MAX_DISTANCE = 15
staticprivate

Definition at line 43 of file LaserMovable.cs.

◆ MIN_DISTANCE

const float LaserMovable.MIN_DISTANCE = 1
staticprivate

Definition at line 44 of file LaserMovable.cs.

Property Documentation

◆ IsPulling

bool LaserMovable.IsPulling
getset

Definition at line 47 of file LaserMovable.cs.

◆ IsTargeted

bool LaserMovable.IsTargeted
getset

Definition at line 48 of file LaserMovable.cs.


The documentation for this class was generated from the following file: