Meta SDK2 Beta  2.7.0
Meta.TwoHandInteraction Class Reference

Base class to extend to implement TwoHandInteractions More...

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

Protected Member Functions

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...
 

Properties

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...
 

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...
 

Detailed Description

Base class to extend to implement TwoHandInteractions

Member Function Documentation

◆ CanDisengage()

override bool Meta.TwoHandInteraction.CanDisengage ( Hand  hand)
inlineprotectedvirtual

Returns true when proper conditions are met to disengage this manipulation.

Reimplemented from Meta.Interaction.

◆ CanEngage()

override bool Meta.TwoHandInteraction.CanEngage ( Hand  hand)
inlineprotectedvirtual

Returns true when proper conditions are met to engage this manipulation.

Reimplemented from Meta.Interaction.

◆ Disengage()

override void Meta.TwoHandInteraction.Disengage ( )
inlineprotectedvirtual

Called when Disengaged.

Implements Meta.Interaction.

◆ Engage()

override void Meta.TwoHandInteraction.Engage ( )
inlineprotectedvirtual

Called when Engaged.

Implements Meta.Interaction.

◆ Manipulate()

override void Meta.TwoHandInteraction.Manipulate ( )
inlineprotectedvirtual

Called every frame to perform manipulation.

Implements Meta.Interaction.

Property Documentation

◆ FirstGrabbingHand

HandFeature Meta.TwoHandInteraction.FirstGrabbingHand
getprotected

◆ SecondGrabbingHand

HandFeature Meta.TwoHandInteraction.SecondGrabbingHand
getprotected