Class UUxtTransformConstraint
Base class for all constraints
Usage: Derive from this component and implement ApplyConstraint and GetConstraintType. Custom constraints will automatically be picked up by a UxtConstraintManager on the same actor
Inheritance
System::Object
USceneComponent
UUxtTransformConstraint
Namespace:
Assembly: .dll
Syntax
public: class UUxtTransformConstraint
Fields
| Improve this Doc View SourceHandType
Whether this constraint applies to one hand manipulation, two hand manipulation or both.
Declaration
public: int32 HandType= static_cast<int32>(EUxtGenericManipulationMode::OneHanded | EUxtGenericManipulationMode::TwoHanded)
Field Value
Type | Description |
---|---|
int32 |
InteractionMode
Whether this constraint applies to near manipulation, far manipulation or both.
Declaration
public: int32 InteractionMode= static_cast<int32>(EUxtInteractionMode::Near | EUxtInteractionMode::Far)
Field Value
Type | Description |
---|---|
int32 |
TargetComponent
The component to transform, will default to the root scene component if not specified
Declaration
public: FComponentReference TargetComponent
Field Value
Type | Description |
---|---|
FComponentReference |
WorldPoseOnManipulationStart
Declaration
protected: FTransform WorldPoseOnManipulationStart
Field Value
Type | Description |
---|---|
FTransform |
Methods
| Improve this Doc View SourceApplyConstraint(FTransform &Transform)
Applies constraints to transforms during manipulation
Declaration
public: virtual void ApplyConstraint(FTransform &Transform) const PURE_VIRTUAL(
Parameters
Type | Name | Description |
---|---|---|
FTransform & | Transform |
GetConstraintType()
Enabled manipulation modes.
Declaration
public: virtual EUxtTransformMode GetConstraintType() const PURE_VIRTUAL(
Returns
Type | Description |
---|---|
EUxtTransformMode |
Initialize(const FTransform &WorldPose)
Intended to be called on manipulation started
Declaration
public: virtual void virtual void Initialize(const FTransform &WorldPose)
Parameters
Type | Name | Description |
---|---|---|
const FTransform & | WorldPose |
Returns
Type | Description |
---|---|
void virtual void |