GestureTracker Class |
Namespace: RavingBots.MagicGestures.Controller
public class GestureTracker : MonoBehaviour
The GestureTracker type exposes the following members.
Name | Description | |
---|---|---|
GestureTracker | Initializes a new instance of the GestureTracker class |
Name | Description | |
---|---|---|
Tracked |
The transform that is currently being tracked.
| |
Trail |
The visual trail of the gesture.
|
Name | Description | |
---|---|---|
Awake |
Setup the component.
| |
FixedUpdate |
Track the pointer and capture gesture points.
| |
GetGesture |
Return a complete gesture, if enough points are captured.
| |
OnDisable |
Disable the tracking when the component is disabled.
| |
OnDrawGizmos |
Draw the position of the tracked object as a gizmo.
| |
SetTracked |
Change the tracked transform.
|
Name | Description | |
---|---|---|
_lastPosition |
The previous position of the Tracked.
| |
_points |
Already captured points.
| |
_tracked |
The transform that is currently being tracked.
| |
_trailPool |
The pool of GestureTrail objects.
| |
MaxPoints |
The maximum number of captured points.
| |
MinPoints |
The minimum number of points before the gesture is considered complete.
| |
MinPointsDistance |
The minimum distance before a new point is captured.
| |
Precache |
The size of the initial GestureTrail pool.
| |
TrailPrefab |
The prefab for the visual trail of the gesture.
|