Skip to content

Class Manus::Interaction::GrabbedObject

ClassList > Manus > Interaction > GrabbedObject

This component is usually on an object that is currently being grabbed by one or more hands. It should not be added via the editor since the linkage between it and any interactors would be broken. It handles all the IGrabbable implementations on the object.

Inherits the following classes: MonoBehaviour

Classes

Type Name
class Info
This class contains information on a certain grab.

Public Attributes

Type Name
List< Info > hands = = new List<Info>()
All of the hands holding onto the object.
Rigidbody rigidBody = = null
The rigid body this object has.

Public Functions

Type Name
bool AddInteractingHand (Info p_GrabInfo)
Add the Info of the interacting hand to the list of hands.
bool GrabbedHandPose (InteractionHand p_InteractionHand)
bool RemoveInteractingHand (HandGrab p_Hand)
Removes an HandInteraction from the list of hands.

Public Attributes Documentation

variable hands

List<Info> Manus.Interaction.GrabbedObject.hands;

variable rigidBody

Rigidbody Manus.Interaction.GrabbedObject.rigidBody;

Public Functions Documentation

function AddInteractingHand

Add the Info of the interacting hand to the list of hands.

inline bool Manus::Interaction::GrabbedObject::AddInteractingHand (
    Info p_GrabInfo
) 

Parameters:

  • p_GrabInfo Info containing the interacting hand and it's grab details.

Returns:

False if the Hand was already grabbing.

function GrabbedHandPose

inline bool Manus::Interaction::GrabbedObject::GrabbedHandPose (
    InteractionHand p_InteractionHand
) 

function RemoveInteractingHand

Removes an HandInteraction from the list of hands.

inline bool Manus::Interaction::GrabbedObject::RemoveInteractingHand (
    HandGrab p_Hand
) 

Parameters:

  • p_Hand The interacting hand to remove.

Returns:

False if the Hand was not in the list.


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