Navigation
API > API/Plugins > API/Plugins/Mover > API/Plugins/Mover/UBasedMovementUtils
Description
Convert a world direction to a local direction for a given MovementBase, optionally relative to the orientation of a bone. Returns false if MovementBase is nullptr, or if BoneName is not a valid bone. Scaling is ignored.
| Name | TransformWorldDirectionToBased |
| Type | function |
| Header File | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/MoveLibrary/BasedMovementUtils.h |
| Include Path | #include "MoveLibrary/BasedMovementUtils.h" |
| Source | /Engine/Plugins/Experimental/Mover/Source/Mover/Private/MoveLibrary/BasedMovementUtils.cpp |
UFUNCTION (BlueprintCallable, Category="Mover/MovementBases")
static bool TransformWorldDirectionToBased
(
const UPrimitiveComponent * MovementBase,
const FName BoneName,
FVector WorldSpaceDirection,
FVector & OutLocalDirection
)