Skip to content

Interface Manus::Interaction::IGrabbable

ClassList > Manus > Interaction > IGrabbable

This interface is required for objects to be grabbable. This interface must be used in combination with a MonoBehaviour in order for it to actually function. It allows for specific behavior when an object is being grabbed or released.

Inherited by the following classes: Manus::Interaction::GrabbableObject, Manus::Interaction::MovableObject, Manus::Interaction::ThrowableObject, Manus::Interaction::TurnableObject, Manus::Networking::Sync::GrabbableObjectSync

Public Functions

Type Name
void OnAddedInteractingInfo (GrabbedObject p_Object, GrabbedObject.Info p_Info)
Called when a new grabber starts grabbing this.
void OnGrabbedEnd (GrabbedObject p_Object)
Called when this stops being grabbed.
void OnGrabbedFixedUpdate (GrabbedObject p_Object)
Called every FixedUpdate when this is grabbed.
void OnGrabbedHandPose (InteractionHand p_Object, GrabbedObject.Info p_Info)
Poses the visual hand. (If needed)
void OnGrabbedStart (GrabbedObject p_Object)
Called when this starts getting grabbed.
void OnRemovedInteractingInfo (GrabbedObject p_Object, GrabbedObject.Info p_Info)
Called when a grabber stops grabbing this.

Public Functions Documentation

function OnAddedInteractingInfo

Called when a new grabber starts grabbing this.

void Manus::Interaction::IGrabbable::OnAddedInteractingInfo (
    GrabbedObject p_Object,
    GrabbedObject.Info p_Info
) 

Parameters:

  • p_Object Contains information about the grab
  • p_Info Contains information about the added grabber

function OnGrabbedEnd

Called when this stops being grabbed.

void Manus::Interaction::IGrabbable::OnGrabbedEnd (
    GrabbedObject p_Object
) 

Parameters:

  • p_Object Contains information about the grab

function OnGrabbedFixedUpdate

Called every FixedUpdate when this is grabbed.

void Manus::Interaction::IGrabbable::OnGrabbedFixedUpdate (
    GrabbedObject p_Object
) 

Parameters:

  • p_Object Contains information about the grab

function OnGrabbedHandPose

Poses the visual hand. (If needed)

void Manus::Interaction::IGrabbable::OnGrabbedHandPose (
    InteractionHand p_Object,
    GrabbedObject.Info p_Info
) 

Parameters:

  • p_Object

function OnGrabbedStart

Called when this starts getting grabbed.

void Manus::Interaction::IGrabbable::OnGrabbedStart (
    GrabbedObject p_Object
) 

Parameters:

  • p_Object Contains information about the grab

function OnRemovedInteractingInfo

Called when a grabber stops grabbing this.

void Manus::Interaction::IGrabbable::OnRemovedInteractingInfo (
    GrabbedObject p_Object,
    GrabbedObject.Info p_Info
) 

Parameters:

  • p_Object Contains information about the grab
  • p_Info Contains information about the removed grabber

The documentation for this class was generated from the following file api/unity-plugin/Scripts/Interaction/IGrabbable.cs