Navigation
API > API/Plugins > API/Plugins/MotionWarping > API/Plugins/MotionWarping/UMotionWarpingComponent
References
| Module | MotionWarping |
| Header | /Engine/Plugins/Animation/MotionWarping/Source/MotionWarping/Public/MotionWarpingComponent.h |
| Include | #include "MotionWarpingComponent.h" |
| Source | /Engine/Plugins/Animation/MotionWarping/Source/MotionWarping/Private/MotionWarpingComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Motion Warping")
void AddOrUpdateWarpTargetFromComponent
(
FName WarpTargetName,
const USceneComponent * Component,
FName BoneName,
bool bFollowComponent,
FVector LocationOffset,
FRotator RotationOffset
)
Remarks
Create and adds or update a target associated with a specified name
Parameters
| Name | Description |
|---|---|
| WarpTargetName | Warp target identifier |
| Component | Scene Component used to get the target transform |
| BoneName | Optional bone or socket in the component used to get the target transform. |
| bFollowComponent | Whether the target transform should update while the warping is active. Useful for tracking moving targets. Note that this will be one frame off if our owner ticks before the target actor. Add tick pre-requisites to avoid this. |
| LocationOffset | Optional translation offset to apply to the transform we get from the component |
| RotationOffset | Optional rotation offset to apply to the transform we get from the component |