Meta SDK2 Beta  2.7.0
Meta.TwoHandGrabScaleInteraction Class Reference

Interaction to scale model by placing two hands into the model and grabbing. More...

Inheritance diagram for Meta.TwoHandGrabScaleInteraction:
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 ()
 Called every frame to perform manipulation. 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...
 

Properties

Vector2 MinSize [get, set]
 Minimum scale More...
 
Vector2 MaxSize [get, set]
 Maximum scale More...
 
Vector3UnityEvent ScaleChanged [get]
 
- 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...
 

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

Interaction to scale model by placing two hands into the model and grabbing.

Member Function Documentation

◆ Disengage()

override void Meta.TwoHandGrabScaleInteraction.Disengage ( )
inlineprotectedvirtual

Called when Disengaged.

Implements Meta.Interaction.

◆ Engage()

override void Meta.TwoHandGrabScaleInteraction.Engage ( )
inlineprotectedvirtual

Called when Engaged.

Implements Meta.Interaction.

◆ Manipulate()

override void Meta.TwoHandGrabScaleInteraction.Manipulate ( )
inlineprotectedvirtual

Called every frame to perform manipulation.

Implements Meta.Interaction.

Property Documentation

◆ MaxSize

Vector2 Meta.TwoHandGrabScaleInteraction.MaxSize
getset

Maximum scale

◆ MinSize

Vector2 Meta.TwoHandGrabScaleInteraction.MinSize
getset

Minimum scale

◆ ScaleChanged

Vector3UnityEvent Meta.TwoHandGrabScaleInteraction.ScaleChanged
get