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 SourceSetup(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 |
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 |