Click or drag to resize

MagicWand Class

The component that handles motion controller input.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          RavingBots.MagicGestures.ControllerMagicWand

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

The MagicWand type exposes the following members.

Constructors
  NameDescription
Public methodMagicWand
Initializes a new instance of the MagicWand class
Top
Properties
  NameDescription
Public propertyCameraRotationReference
An averaged camera orientantion during the action.
Public propertyCameraTransformOnActionStart
The state of the camera transform when the action starts.
Public propertyCameraTransformOnActionStop
The state of the camera transform when the action ends.
Public propertyGestureTracker
The gesture tracker of this wand.
Public propertyLaserPointer
The laser pointer component of this wand.
Public propertyMenuMode
if the menu is open.
Public propertySpellCaster
The spell effect manager of this wand.
Public propertyTrackedController
The motion controller component of this wand.
Top
Methods
  NameDescription
Public methodActionStart
Called when the user presses the trigger.
Public methodActionStop
Called when the user releases the trigger.
Protected methodAwake
Get and configure the child components.
Private methodMenuButtonClicked
Called when the user presses the menu button on the controller.
Protected methodOnApplicationQuit
Short-circuit the destruction logic on application quit.
Protected methodOnDisable
Stop the current action.
Public methodOnMagic
Play the casting sound.
Private methodSetMenuMode
Update the menu state.
Protected methodStart
Register this wand with the WandManager.
Private methodTriggerClicked
Called when the user presses the trigger.
Private methodTriggerUnclicked
Called when the user releases the trigger.
Top
Fields
  NameDescription
Private field_audioSource
The audio source attached to this wand.
Private field_menuMode
if the menu is open.
Private field_quitting
if the application is exiting.
Private field_renderers
All renderers this wand consists of.
Top
Remarks
The transform of the object is updated on movement by components provided by the SteamVR plugin, which is why there's no Update method here.
See Also