Navigation
Unreal Engine C++ API Reference > Runtime > AnimGraphRuntime > UKismetAnimationLibrary
References
Module | AnimGraphRuntime |
Header | /Engine/Source/Runtime/AnimGraphRuntime/Public/KismetAnimationLibrary.h |
Include | #include "KismetAnimationLibrary.h" |
Source | /Engine/Source/Runtime/AnimGraphRuntime/Private/KismetAnimationLibrary.cpp |
static FTransform K2_LookAt
&40;
const FTransform & CurrentTransform,
const FVector & TargetPosition,
FVector LookAtVector,
bool bUseUpVector,
FVector UpVector,
float ClampConeInDegree
&41;
Remarks
Computes the transform which is "looking" at target position with a local axis.
Parameters
Name | Description |
---|---|
CurrentTransform | The input transform to modify |
TargetPosition | The position this transform should look at |
LookAtVector | The local vector to align with the target |
bUseUpVector | If set to true the lookat will also perform a twist rotation |
UpVector | The position to use for the upvector target (only used is bUseUpVector is turned on) |
ClampConeInDegree | A limit for only allowing the lookat to rotate as much as defined by the float value |