UxtTwoHandManipulationRotateLogic
Implements common logic for rotating holograms using a handlebar metaphor.
Each frame, object_rotation_delta = rotation_delta(current_hands_vector, previous_hands_vector) where hands_vector is the vector between two hand/controller positions.
Usage: When a manipulation starts, call Setup. Call Update with currently available grab pointers to get a new rotation for the object.
class UxtTwoHandManipulationRotateLogic;
Header
#include <Interactions/Manipulation/UxtTwoHandRotateLogic.h>
Public Types
Name | |
---|---|
typedef const TArray< FUxtGrabPointerData > & | GrabPointers |
Public Functions
Name | |
---|---|
void | Setup(GrabPointers PointerData, const FQuat & HostRotation) |
FQuat | Update(GrabPointers PointerData) const |
Public Types Documentation
typedef GrabPointers
typedef const TArray<FUxtGrabPointerData>& UxtTwoHandManipulationRotateLogic::GrabPointers;
Public Functions Documentation
function Setup
void Setup(
GrabPointers PointerData,
const FQuat & HostRotation
)
Sets up rotation logic by storing initial handle bar and rotation value
function Update
FQuat Update(
GrabPointers PointerData
) const
Updates the rotation based on the current grab pointer locations
Updated on 2 November 2021 at 11:40:26 Coordinated Universal Time