Navigation
API > API/Plugins > API/Plugins/IKRig > API/Plugins/IKRig/Retargeter
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UIKRetargetProcessor
References
| Module | IKRig |
| Header | /Engine/Plugins/Animation/IKRig/Source/IKRig/Public/Retargeter/IKRetargetProcessor.h |
| Include | #include "Retargeter/IKRetargetProcessor.h" |
Syntax
UCLASS ()
class UIKRetargetProcessor : public UObject
Remarks
The runtime processor that converts an input pose from a source skeleton into an output pose on a target skeleton. To use:
Initialize a processor with a Source/Target skeletal mesh and a UIKRetargeter asset.
Call RunRetargeter and pass in a source pose as an array of global-space transforms
RunRetargeter returns an array of global space transforms for the target skeleton.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FRetargetDebugData | DebugData | Store data for debug drawing | |
| FIKRigLogger | Log | Logging system |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Apply the settings stored in the IKRig asset. | ||
| FName | GetBoneAtParam
(
const FName InChainName, |
Get the bone in the chain at the given param. | |
| int32 | GetBoneIndexFromName
(
const FName BoneName, |
Returns index of the bone with the given name in either Source or Target skeleton. | |
| const FChainFK * | GetChain
(
const FName InChainName, |
Get access to the internal chain on the given skeleton | |
| FName | GetChainNameForBone
(
const FName BoneName, |
Returns name of the chain associated with this bone. Returns NAME_None if bone is not in a chain. | |
| const TArray< FRetargetChainPairFK > & | Get read only access to the core FK retarget chains | ||
| FTransform | GetGlobalRetargetPoseAtParam
(
const FName InChainName, |
Get a transform at a given param in a chain | |
| const FRetargetGlobalSettings & | Get read only access to the current global settings. | ||
| const TArray< FRetargetChainPairIK > & | Get read only access to the core IK retarget chains | ||
| FName | GetMappedChainName
(
const FName InChainName, |
Get the chain mapped to this one. | |
| float | GetParamOfBoneInChain
(
const FName InBoneName, |
Get the param of the bone in it's retarget chain. Ranges from 0 to NumBonesInChain. | |
| const TArray< TObjectPtr< URetargetOpBase > > & | Get read only access to the retarget ops currently running in processor. | ||
| FName | GetRetargetRoot
(
ERetargetSourceOrTarget SourceOrTarget |
Get name of the root bone of the given skeleton. | |
| const FRootRetargeter & | Get read only access to the core root retargeter | ||
| const FRetargetSkeleton & | GetSkeleton
(
ERetargetSourceOrTarget SourceOrTarget |
Get read-only access to either source or target skeleton. | |
| UIKRigProcessor * | Get the currently running IK Rig processor for the target | ||
| void | Initialize
(
USkeletalMesh* SourceSkeleton, |
Initialize the retargeter to enable running it. | |
| bool | IsBoneRetargeted
(
const FName BoneName, |
Returns true if the bone is part of a retarget chain or root bone, false otherwise. | |
| bool | Get whether this processor is ready to call RunRetargeter() and generate new poses. | ||
| FOnRetargeterInitialized & | Attach a delegate to be notified whenever this processor is initialized. | ||
| void | Reset the IK planting state. | ||
| TArray< FTransform > & | RunRetargeter
(
const TArray< FTransform >& InSourceGlobalPose, |
Run the retarget to generate a new pose. | |
| void | Set that this processor needs to be reinitialized. | ||
| void | UpdateRetargetPoseAtRuntime
(
const FName NewRetargetPoseName, |
Does a partial reinitialization (at runtime) whenever the retarget pose is swapped to a different or if the pose has been modified. | |
| bool | WasInitializedWithTheseAssets
(
const TObjectPtr< USkeletalMesh > InSourceMesh, |
Get whether this processor was initialized with these skeletal meshes and retarget asset |
Typedefs
| Name | Description |
|---|---|
| FOnRetargeterInitialized |