3#include <Core/ResourceManager/ResourceHandle.h>
4#include <Foundation/Time/Time.h>
5#include <RendererCore/AnimationSystem/AnimGraph/AnimGraphPins.h>
46 const char* GetCustomNodeTitle()
const {
return m_sCustomNodeTitle.GetString(); }
47 void SetCustomNodeTitle(
const char* szSz) { m_sCustomNodeTitle.Assign(szSz); }
55 plUInt32 m_uiInstanceDataOffset = plInvalidIndex;
84 bool m_bImmediateFadeIn =
false;
85 bool m_bImmediateFadeOut =
false;
87 float m_fPlaybackSpeed = 1.0f;
88 bool m_bApplyRootMotion =
false;
91 bool m_bTriggerActive =
false;
92 float m_fPlaybackSpeedFactor = 1.0f;
96 bool WillStateBeOff(
bool bTriggerActive)
const;
97 void UpdateState(
plTime diff);
98 State GetCurrentState()
const {
return m_State; }
99 float GetWeight()
const {
return m_fCurWeight; }
100 float GetNormalizedPlaybackPosition()
const {
return m_fNormalizedPlaybackPosition; }
101 bool HasTransitioned()
const {
return m_bHasTransitioned; }
102 bool HasLoopedStart()
const {
return m_bHasLoopedStart; }
103 bool HasLoopedEnd()
const {
return m_bHasLoopedEnd; }
104 float GetFinalSpeed()
const {
return m_fPlaybackSpeed * m_fPlaybackSpeedFactor; }
110 void RampWeightUpOrDown(
float& inout_fWeight,
float fTargetWeight,
plTime tDiff)
const;
112 State m_State = State::Off;
113 float m_fNormalizedPlaybackPosition = 0.0f;
114 bool m_bRequireLoopForRampDown =
true;
115 bool m_bHasTransitioned =
false;
116 bool m_bHasLoopedStart =
false;
117 bool m_bHasLoopedEnd =
false;
118 float m_fCurWeight = 0.0f;
121PL_DECLARE_REFLECTABLE_TYPE(PL_RENDERERCORE_DLL,
plAnimState);
Definition AnimController.h:52
Definition AnimGraph.h:11
Definition AnimGraphInstance.h:15
Base class for all nodes in an plAnimGraphInstance.
Definition AnimGraphNode.h:36
Definition AnimGraphResource.h:33
Definition AnimationClipResource.h:100
This class represents an object inside the world.
Definition GameObject.h:32
This class is optimized to take nearly no memory (sizeof(void*)) and to allow very fast checks whethe...
Definition HashedString.h:25
All classes that should be dynamically reflectable, need to be derived from this base class.
Definition DynamicRTTI.h:86
Definition SkeletonResource.h:47
Interface for binary in (read) streams.
Definition Stream.h:22
Interface for binary out (write) streams.
Definition Stream.h:107
Definition AnimController.h:24
Definition AnimGraphNode.h:69
Structure to describe an instance data type.
Definition InstanceDataAllocator.h:17
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54
The time class encapsulates a double value storing the time in seconds.
Definition Time.h:12