Show / Hide Table of Contents

    UxtManipulationMoveLogic

    Implements a move logic that will move an object based on the initial position of the grab point relative to the pointer and relative to the object, and subsequent changes to the pointer and the object's rotation

    Usage: When a manipulation starts, call Setup. Call Update for querying a new position for the object.

    class UxtManipulationMoveLogic;
    

    Header

    #include <Interactions/Manipulation/UxtManipulationMoveLogic.h>

    Public Functions

    Name
    void Setup(const FTransform & PointerCentroidPose, const FVector & GrabCentroid, const FTransform & ObjectTransform, const FVector & HeadPosition)
    FVector Update(const FTransform & PointerCentroidPose, const FQuat & ObjectRotation, const FVector & ObjectScale, bool UsePointerRotation, const FVector & HeadPosition) const

    Public Functions Documentation

    function Setup

    void Setup(
        const FTransform & PointerCentroidPose,
        const FVector & GrabCentroid,
        const FTransform & ObjectTransform,
        const FVector & HeadPosition
    )
    

    Setup move logic by caching initial input values

    function Update

    FVector Update(
        const FTransform & PointerCentroidPose,
        const FQuat & ObjectRotation,
        const FVector & ObjectScale,
        bool UsePointerRotation,
        const FVector & HeadPosition
    ) const
    

    Provide updated input and head/camera position to retrieve new object position


    Updated on 2 November 2021 at 11:40:26 Coordinated Universal Time

    • Improve this Doc
    Back to top Generated by DocFX