FUxtGrabPointerData
Utility struct that stores transient data for a pointer which is interacting with a grabbable component.
struct FUxtGrabPointerData;
Header
#include <UxtGrabTargetComponent.h>
Public Attributes
Name | |
---|---|
UUxtNearPointerComponent * | NearPointer |
UUxtFarPointerComponent * | FarPointer |
FTransform | GrabPointTransform |
float | StartTime |
FTransform | LocalGrabPoint |
FTransform | GripToGrabPoint |
FTransform | GripToObject |
FTransform | FarRayHitPointInPointer |
Public Attributes Documentation
variable NearPointer
UUxtNearPointerComponent* FUxtGrabPointerData::NearPointer
UUxtNearPointerComponent * NearPointer = nullptr;
The near pointer that is interacting with the component.
variable FarPointer
UUxtFarPointerComponent* FUxtGrabPointerData::FarPointer
UUxtFarPointerComponent * FarPointer = nullptr;
The far pointer that is interacting with the component
variable GrabPointTransform
FTransform FUxtGrabPointerData::GrabPointTransform
FTransform GrabPointTransform;
Last updated grab point transform. (Pointer transform in near pointer case, ray hit transform in far pointer case)
variable StartTime
float FUxtGrabPointerData::StartTime
float StartTime;
The time at which interaction started, in seconds since application start.
variable LocalGrabPoint
FTransform FUxtGrabPointerData::LocalGrabPoint
FTransform LocalGrabPoint;
Transform of the pointer when it started interacting, in the local space of the target component. This allows computing pointer offset in relation to the current actor transform.
variable GripToGrabPoint
FTransform FUxtGrabPointerData::GripToGrabPoint
FTransform GripToGrabPoint;
Transform of the grab point in near pointer's grip local space at the start of the interaction.
This is useful to prevent grab point's position changes after grab starts from altering object's transform (e.g. animation of InputSim's hand).
Far pointer doesn't need this because its grip transform is already at grab point.
variable GripToObject
FTransform FUxtGrabPointerData::GripToObject
FTransform GripToObject;
Transform of the object in pointer's grip local space at the start of the interaction.
variable FarRayHitPointInPointer
FTransform FUxtGrabPointerData::FarRayHitPointInPointer
FTransform FarRayHitPointInPointer = FTransform::Identity;
Far pointer only property -> describes the relative transform of the grab point to the pointer transform (pointer origin / orientation) This is needed to calculate the new grab point on the object on pointer translations / rotations
Updated on 19 August 2021 at 17:42:52 Coordinated Universal Time