Tanoda
Leap.Unity.Interaction.NonKinematicGraspedMovement Class Reference

This implementation of IGraspedMovementHandler moves an interaction object to its target position and rotation by setting its rigidbody's velocity and angular velocity such that it will reach the target position and rotation on the next physics update. More...

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

Public Member Functions

void MoveTo (Vector3 solvedPosition, Quaternion solvedRotation, InteractionBehaviour intObj, 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...
 

Protected Attributes

float _maxVelocity = 6F
 
AnimationCurve _strengthByDistance
 

Detailed Description

This implementation of IGraspedMovementHandler moves an interaction object to its target position and rotation by setting its rigidbody's velocity and angular velocity such that it will reach the target position and rotation on the next physics update.

Definition at line 20 of file NonKinematicGraspedMovement.cs.

Member Function Documentation

◆ MoveTo()

void Leap.Unity.Interaction.NonKinematicGraspedMovement.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 28 of file NonKinematicGraspedMovement.cs.

Member Data Documentation

◆ _maxVelocity

float Leap.Unity.Interaction.NonKinematicGraspedMovement._maxVelocity = 6F
protected

Definition at line 22 of file NonKinematicGraspedMovement.cs.

◆ _strengthByDistance

AnimationCurve Leap.Unity.Interaction.NonKinematicGraspedMovement._strengthByDistance
protected
Initial value:
= new AnimationCurve(new Keyframe(0.0f, 1.0f, 0.0f, 0.0f),
new Keyframe(0.02f, 0.3f, 0.0f, 0.0f))

Definition at line 25 of file NonKinematicGraspedMovement.cs.


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