Class 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.
Inheritance
System::Object
UxtManipulationMoveLogic
Namespace:
Assembly: .dll
Syntax
public: class UxtManipulationMoveLogic
Methods
| Improve this Doc View SourceSetup(const FTransform &PointerCentroidPose, const FVector &GrabCentroid, const FTransform &ObjectTransform, const FVector &HeadPosition)
Setup move logic by caching initial input values
Declaration
public: void Setup(const FTransform &PointerCentroidPose, const FVector &GrabCentroid, const FTransform &ObjectTransform, const FVector &HeadPosition)
Parameters
Type | Name | Description |
---|---|---|
const FTransform & | PointerCentroidPose | |
const FVector & | GrabCentroid | |
const FTransform & | ObjectTransform | |
const FVector & | HeadPosition |
Update(const FTransform &PointerCentroidPose, const FQuat &ObjectRotation, const FVector &ObjectScale, bool UsePointerRotation, const FVector &HeadPosition)
Provide updated input and head/camera position to retrieve new object position
Declaration
public: FVector Update(const FTransform &PointerCentroidPose, const FQuat &ObjectRotation, const FVector &ObjectScale, bool UsePointerRotation, const FVector &HeadPosition) const
Parameters
Type | Name | Description |
---|---|---|
const FTransform & | PointerCentroidPose | |
const FQuat & | ObjectRotation | |
const FVector & | ObjectScale | |
bool | UsePointerRotation | |
const FVector & | HeadPosition |
Returns
Type | Description |
---|---|
FVector |