public/0.12.xpublic/0.8.xpublic/0.9.xpublic/0.10.x
  • Features
  • API Documentation
  • API Documentation

    Show / Hide Table of Contents

    Class UxtTwoHandManipulationScaleLogic

    Implements a scale logic that will scale an object based on the ratio of the distance between hands: object_scale = start_object_scale * curr_hand_dist / start_hand_dist

    Usage: When a manipulation starts, call Setup. Call Update with currently available grab pointers to get a new scale for the object.

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

    Methods

    | Improve this Doc View Source

    Setup(GrabPointers PointerData, const FVector &ObjectScale)

    Sets up scale logic by storing initial object scale and hand distance

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

    Update(GrabPointers PointerData)

    Updates the scale based on the current grab pointer locations. Returns the new object scale.

    Declaration
    public: FVector Update(GrabPointers PointerData) const
    Parameters
    Type Name Description
    GrabPointers PointerData
    Returns
    Type Description
    FVector
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Setup(GrabPointers PointerData, const FVector &ObjectScale)
      • Update(GrabPointers PointerData)
    Back to top Generated by DocFX