UPhysicalAnimationComponent::ApplyPhysicalAnimationProfileBelow

Applies the physical animation profile to the body given and all bodies below.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/PhysicsEngine/PhysicalAnimationComponent.h

Include

#include "PhysicsEngine/PhysicalAnimationComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/PhysicsEngine/PhysicalAnimationComponent.cpp

Syntax

void ApplyPhysicalAnimationProfileBelow
(
    FName BodyName,
    FName ProfileName,
    bool bIncludeSelf,
    bool bClearNotFound
)

Remarks

Applies the physical animation profile to the body given and all bodies below.

Parameters

Parameter

Description

BodyName

The body from which we'd like to start applying the physical animation profile. Finds all bodies below in the skeleton hierarchy. None implies all bodies

ProfileName

The physical animation profile we'd like to apply. For each body in the physics asset we search for physical animation settings with this name.

bIncludeSelf

Whether to include the provided body name in the list of bodies we act on (useful to ignore for cases where a root has multiple children)

bClearNotFound

If true, bodies without the given profile name will have any existing physical animation settings cleared. If false, bodies without the given profile name are left untouched.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss