Click or drag to resize

GestureTracker Class

The component that captures gesture points.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          RavingBots.MagicGestures.ControllerGestureTracker

Namespace:  RavingBots.MagicGestures.Controller
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class GestureTracker : MonoBehaviour

The GestureTracker type exposes the following members.

Constructors
  NameDescription
Public methodGestureTracker
Initializes a new instance of the GestureTracker class
Top
Properties
  NameDescription
Public propertyTracked
The transform that is currently being tracked.
Public propertyTrail
The visual trail of the gesture.
Top
Methods
  NameDescription
Protected methodAwake
Setup the component.
Protected methodFixedUpdate
Track the pointer and capture gesture points.
Public methodGetGesture
Return a complete gesture, if enough points are captured.
Protected methodOnDisable
Disable the tracking when the component is disabled.
Protected methodOnDrawGizmos
Draw the position of the tracked object as a gizmo.
Private methodSetTracked
Change the tracked transform.
Top
Fields
  NameDescription
Private field_lastPosition
The previous position of the Tracked.
Private field_points
Already captured points.
Private field_tracked
The transform that is currently being tracked.
Private field_trailPool
The pool of GestureTrail objects.
Public fieldMaxPoints
The maximum number of captured points.
Public fieldMinPoints
The minimum number of points before the gesture is considered complete.
Public fieldMinPointsDistance
The minimum distance before a new point is captured.
Private fieldStatic memberPrecache
The size of the initial GestureTrail pool.
Protected fieldTrailPrefab
The prefab for the visual trail of the gesture.
Top
See Also