Tanoda
Leap.Unity.Interaction.KinematicGraspedMovement Class Reference

This implementation of IGraspedMovementHandler moves its interaction object to a target position and rotation by setting its rigidbody position and rotation directly to that target position and rotation. This is required when working with kinematic rigidbodies, which do not move based on their velocity and angular velocity. More...

Inheritance diagram for Leap.Unity.Interaction.KinematicGraspedMovement:
Leap.Unity.Interaction.IGraspedMovementHandler

Public Member Functions

void MoveTo (Vector3 solvedPosition, Quaternion solvedRotation, InteractionBehaviour interactionObj, bool justGrasped)
 Called by an interaction object when its grasped pose handler has determined a target pose; this method should attempt to move the interaction object to match that pose. More...
 
void MoveTo (Vector3 solvedPosition, Quaternion solvedRotation, InteractionBehaviour interactionObj, bool justGrasped)
 Called by an interaction object when its grasped pose handler has determined a target pose; this method should attempt to move the interaction object to match that pose. More...
 

Detailed Description

This implementation of IGraspedMovementHandler moves its interaction object to a target position and rotation by setting its rigidbody position and rotation directly to that target position and rotation. This is required when working with kinematic rigidbodies, which do not move based on their velocity and angular velocity.

Definition at line 22 of file KinematicGraspedMovement.cs.

Member Function Documentation

◆ MoveTo()

void Leap.Unity.Interaction.KinematicGraspedMovement.MoveTo ( Vector3  solvedPosition,
Quaternion  solvedRotation,
InteractionBehaviour  interactionObj,
bool  justGrasped 
)

Called by an interaction object when its grasped pose handler has determined a target pose; this method should attempt to move the interaction object to match that pose.

Implements Leap.Unity.Interaction.IGraspedMovementHandler.

Definition at line 24 of file KinematicGraspedMovement.cs.


The documentation for this class was generated from the following file: