Show / Hide Table of Contents

    Class 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.

    Inheritance
    System::Object
    UxtTwoHandManipulationRotateLogic
    Inherited Members
    UxtTwoHandManipulationRotateLogic
    Namespace:
    Assembly: .dll
    Syntax
    public: class UxtTwoHandManipulationRotateLogic

    Methods

    | Improve this Doc View Source

    Setup(GrabPointers PointerData, const FQuat &HostRotation)

    Sets up rotation logic by storing initial handle bar and rotation value

    Declaration
    public: void Setup(GrabPointers PointerData, const FQuat &HostRotation)
    Parameters
    Type Name Description
    GrabPointers PointerData
    const FQuat & HostRotation
    | Improve this Doc View Source

    Update(GrabPointers PointerData)

    Updates the rotation based on the current grab pointer locations

    Declaration
    public: FQuat Update(GrabPointers PointerData) const
    Parameters
    Type Name Description
    GrabPointers PointerData
    Returns
    Type Description
    FQuat
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX