Changed Forward Facing start cycle from foot based to feetpositionvalue
This commit is contained in:
parent
49ab3fd41f
commit
a50669a647
Binary file not shown.
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 49 KiB |
File diff suppressed because one or more lines are too long
@ -82,26 +82,26 @@ UAnimSequence* FOLSMovementAnimSet::GetMovementAnimationByCardinalDirection(cons
|
||||
return result;
|
||||
}
|
||||
|
||||
class UAnimSequence* FOLSMovementAnimSet_ForwardFacing_StartCycle::GetForwardLeftOrRightFootByAngle(
|
||||
const bool isRightFootFront) const
|
||||
class UAnimSequence* FOLSMovementAnimSet_ForwardFacing_StartCycle::GetForwardLeftOrRightFoot(
|
||||
const float feetPositionValue) const
|
||||
{
|
||||
return (isRightFootFront) ? Forward_R : Forward_L;
|
||||
return (feetPositionValue > 0.f) ? Forward_R : Forward_L;
|
||||
}
|
||||
|
||||
UAnimSequence* FOLSMovementAnimSet_ForwardFacing_StartCycle::GetForward180LeftOrRightByAngle(const float angle) const
|
||||
UAnimSequence* FOLSMovementAnimSet_ForwardFacing_StartCycle::GetForward180LeftOrRight(const float angle) const
|
||||
{
|
||||
return (angle > 0.f) ? Forward180_R : Forward180_L;
|
||||
}
|
||||
|
||||
class UAnimSequence* FOLSMovementAnimSet_ForwardFacing_StartCycle::GetMovementAnimationByAngle(
|
||||
const EOLSCardinalDirection direction, const float angle, const bool isRightFootFront) const
|
||||
const EOLSCardinalDirection direction, const float angle, const float feetPositionValue) const
|
||||
{
|
||||
TObjectPtr<UAnimSequence> result = nullptr;
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
case EOLSCardinalDirection::EForward:
|
||||
result = GetForwardLeftOrRightFootByAngle(isRightFootFront);
|
||||
result = GetForwardLeftOrRightFoot(feetPositionValue);
|
||||
break;
|
||||
case EOLSCardinalDirection::ELeft:
|
||||
result = Left;
|
||||
@ -110,7 +110,7 @@ class UAnimSequence* FOLSMovementAnimSet_ForwardFacing_StartCycle::GetMovementAn
|
||||
result = Right;
|
||||
break;
|
||||
case EOLSCardinalDirection::EBackward:
|
||||
result = GetForward180LeftOrRightByAngle(angle);
|
||||
result = GetForward180LeftOrRight(angle);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -153,11 +153,11 @@ struct FOLSMovementAnimSet_ForwardFacing_StartCycle
|
||||
|
||||
public:
|
||||
|
||||
class UAnimSequence* GetForwardLeftOrRightFootByAngle(const bool isRightFootFront) const;
|
||||
class UAnimSequence* GetForward180LeftOrRightByAngle(const float angle) const;
|
||||
class UAnimSequence* GetForwardLeftOrRightFoot(const float feetPositionValue) const;
|
||||
class UAnimSequence* GetForward180LeftOrRight(const float angle) const;
|
||||
class UAnimSequence* GetMovementAnimationByAngle(const EOLSCardinalDirection direction,
|
||||
const float angle,
|
||||
const bool isRightFootFront) const;
|
||||
const float feetPositionValue) const;
|
||||
|
||||
public:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user