Meta SDK2 Beta  2.7.0
Meta.TwoHandGrabRotateInteraction Class Reference

Manipulation to rotate through average the quaternions of two hands grabbing around a central point. More...

Inheritance diagram for Meta.TwoHandGrabRotateInteraction:
Meta.TwoHandInteraction Meta.Interaction Meta.MetaBehaviour Meta.IInteractibleObject Meta.BaseMetaBehaviour< IMetaContext >

Protected Member Functions

override void Engage ()
 Called when Engaged. More...
 
override void Disengage ()
 Called when Disengaged. More...
 
override void Manipulate ()
 Continually place gizmo between two hands and average the movement vectors of the two hands in order to apply to the final object quaternion around the gizmo center point. More...
 
- Protected Member Functions inherited from Meta.TwoHandInteraction
override bool CanEngage (Hand hand)
 Returns true when proper conditions are met to engage this manipulation. More...
 
override void Engage ()
 Called when Engaged. More...
 
override bool CanDisengage (Hand hand)
 Returns true when proper conditions are met to disengage this manipulation. More...
 
override void Disengage ()
 Called when Disengaged. More...
 
override void Manipulate ()
 Called every frame to perform manipulation. More...
 
- Protected Member Functions inherited from Meta.Interaction
virtual void Awake ()
 
virtual void Update ()
 
void Move (Vector3 position)
 Translate target transform. More...
 
void Rotate (Quaternion rotation)
 Rotate target transform. More...
 
void PrepareRigidbodyForInteraction ()
 Set the rigidbody to kinematic and clear its constraints so as not to interfere with interaction translation. More...
 
void RestoreRigidbodySettingsAfterInteraction ()
 Restore the rigidbody's kinematic state and constraints as they were prior to the most recent interaction. More...
 
void SetGrabOffset (Vector3 handPosition)
 Calculates the difference in position between the grabbing hand and the GameObject More...
 

Additional Inherited Members

- Public Member Functions inherited from Meta.Interaction
void OnGrabEngaged (Hand grabbingHand)
 Called when grabbed by CenterHandFeature. More...
 
void OnGrabDisengaged (Hand releasingHand)
 Called when released by a CenterHandFeature. More...
 
void OnHoverStart (Hand hand)
 Called object is first hovered upon. More...
 
void OnHoverEnd (Hand hand)
 Called object is no longer hovered upon. More...
 
Collider [] GetAffectingColliders ()
 Returns all colliders affecting this interaction script. More...
 
- Protected Attributes inherited from Meta.Interaction
List< HandFeatureGrabbingHands = new List<HandFeature>()
 
List< HandFeatureHoveringHands = new List<HandFeature>()
 
bool IsHoveredUpon
 
Vector3 GrabOffset
 Offset of the grabbing hand/s from the main affected transform at the moment of grab. More...
 
- Properties inherited from Meta.TwoHandInteraction
HandFeature FirstGrabbingHand [get]
 
HandFeature SecondGrabbingHand [get]
 
- Properties inherited from Meta.Interaction
bool HigherPriorityRunning [get, set]
 Set via the InteractionOrder component to cause interactions to give priority to Interactions above them in the InteractionOrder priority list. More...
 
InteractionState State [get]
 The Interaction's current manipulation state More...
 
Transform TargetTransform [get, set]
 Call to retrieve transform onto which any operation should be applied. More...
 
InteractionEvents Events [get]
 
- Properties inherited from Meta.BaseMetaBehaviour< IMetaContext >
metaContext [get]
 Contains references to modules used to provide Meta functionality in the scene. More...
 

Detailed Description

Manipulation to rotate through average the quaternions of two hands grabbing around a central point.

Member Function Documentation

◆ Disengage()

override void Meta.TwoHandGrabRotateInteraction.Disengage ( )
inlineprotectedvirtual

Called when Disengaged.

Implements Meta.Interaction.

◆ Engage()

override void Meta.TwoHandGrabRotateInteraction.Engage ( )
inlineprotectedvirtual

Called when Engaged.

Implements Meta.Interaction.

◆ Manipulate()

override void Meta.TwoHandGrabRotateInteraction.Manipulate ( )
inlineprotectedvirtual

Continually place gizmo between two hands and average the movement vectors of the two hands in order to apply to the final object quaternion around the gizmo center point.

Implements Meta.Interaction.