Navigation
API > API/Plugins > API/Plugins/PhysicsControl > API/Plugins/PhysicsControl/UPhysicsControlComponent
Description
This flags the body associated with the modifier, or modifiers in a set, to set (using teleport) its position and velocity to the cached animation target. This will only affect skeletal mesh component bodies. Standard sets will include "All" and things like "ArmLeft", depending on how body modifiers have been created.
| Name | ResetBodyModifierToCachedBoneTransform |
| Type | function |
| Header File | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Public/PhysicsControlComponent.h |
| Include Path | #include "PhysicsControlComponent.h" |
| Source | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Private/PhysicsControlComponent.cpp |
UFUNCTION (BlueprintCallable, Category=PhysicsControl, Meta=(ReturnDisplayName="Success"))
void ResetBodyModifierToCachedBoneTransform
(
const FName Name,
const EResetToCachedTargetBehavior Behavior,
const bool bApplyToModifiersWithName,
const bool bApplyToSetsWithName
)
Parameters
| Name | Remarks |
|---|---|
| Name | The name of the body modifier or set of body modifiers to use to identify the body/bodies to reset. |
| Behavior | When the reset should happen. |
| bApplyToModifiersWithName | If true, then body modifiers with the name will be modified |
| bApplyToSetsWithName | If true, then body modifiers in sets with the name will be modified |