Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Units > API/Plugins/ControlRig/Units/Hierarchy
Inheritance Hierarchy
- FRigVMStruct
- FRigUnit
- FRigUnitMutable
- FRigUnit_SetRelativeRotationForItem
References
| Module | ControlRig |
| Header | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Units/Hierarchy/RigUnit_SetRelativeTransform.h |
| Include | #include "Units/Hierarchy/RigUnit_SetRelativeTransform.h" |
Syntax
USTRUCT (
Meta=(DisplayName="Set Relative Rotation", Category="Transforms", TemplateName="Set Relative Transform", DocumentationPolicy="Strict", Keywords="Offset,Local", NodeColor="0, 0.364706, 1.0", Varying))
struct FRigUnit_SetRelativeRotationForItem : public FRigUnitMutable
Remarks
SetRelativeRotation is used to set a single rotation from a hierarchy in the space of another item
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bParentInitial | Defines if the parent's transform should be determined as current (false) or initial (true). | |
| bool | bPropagateToChildren | If set to true children of affected items in the hierarchy will follow the transform change - otherwise only the parent will move. | |
| FCachedRigElement | CachedChild | Used to cache the child internally. | |
| FCachedRigElement | CachedParent | Used to cache the parent internally. | |
| FRigElementKey | Child | The child item to set the transform for | |
| FRigElementKey | Parent | The parent item to use. The child transform will be set in the space of the parent. | |
| FQuat | Value | The transform of the child item relative to the provided parent. | |
| float | Weight | Defines how much the change will be applied. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Overridden from FRigUnit
| Type | Name | Description | |
|---|---|---|---|
| bool | UpdateDirectManipulationFromHierarchy
(
const URigVMUnitNode* InNode, |
Sets the values on this node based on a viewport pose | |
| bool | UpdateHierarchyForDirectManipulation
(
const URigVMUnitNode* InNode, |
Sets a control's pose to represent this viewport pose target |
Overridden from FRigVMStruct
| Type | Name | Description | |
|---|---|---|---|
| void | Execute () |
Execute logic for this struct |