Tanoda
IGraspedPoseHandler.cs
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) Ultraleap, Inc. 2011-2020. *
3 * *
4 * Use subject to the terms of the Apache License 2.0 available at *
5 * http://www.apache.org/licenses/LICENSE-2.0, or another agreement *
6 * between Ultraleap and you, your company or other organization. *
7 ******************************************************************************/
8
9using System.Collections;
10using System.Collections.Generic;
11using UnityEngine;
12
13namespace Leap.Unity.Interaction {
14
26 public interface IGraspedPoseHandler {
27
33
39
45
50 void GetGraspedPosition(out Vector3 position, out Quaternion rotation);
51
52 }
53
54}
An IGraspedPoseHandler specifies where an object grasped by a Leap hand or controller (or multiple ha...
void ClearControllers()
Called e.g. if the InteractionBehaviour is set not to move while being grasped; this should clear any...
void GetGraspedPosition(out Vector3 position, out Quaternion rotation)
Calculate the best holding position and orientation given the current state of all InteractionControl...
void RemoveController(InteractionController controller)
Called when an InteractionController stops grasping a certain object; the controller should no longer...
void AddController(InteractionController controller)
Called when a new InteractionController begins grasping a certain object. The controller or Leap hand...