Class AnimatedModelComponent¶
Defined in File animated_model_component.h
Inheritance Relationships¶
Base Type¶
public RenderableComponent(Class RenderableComponent)
Class Documentation¶
-
class
AnimatedModelComponent: public RenderableComponent¶ Component for skeletal animation models.
Public Functions
-
~AnimatedModelComponent()¶
-
bool
preRender(float deltaMilliseconds)¶
-
void
render(float viewDistance)¶
-
float
getCurrentTime() const¶
-
void
checkCurrentAnimationExists()¶
-
void
update(float deltaMilliseconds)¶
-
void
setPlaying(bool enabled)¶
-
void
play()¶
-
void
stop()¶
-
void
setSpeedMultiplier(float speedMul)¶
-
float
getStartTime() const¶
-
float
getEndTime() const¶
-
bool
isPlaying() const¶
-
bool
hasEnded() const¶
-
void
assignBoundingBox()¶
-
void
assignOverrides(Ref<AnimatedModelResourceFile> file, const HashMap<String, String> &materialOverrides)¶
-
void
setAnimatedResourceFile(Ref<AnimatedModelResourceFile> file, const HashMap<String, String> &materialOverrides)¶
-
Ref<AnimatedModelResourceFile>
getAnimatedResourceFile() const¶
-
bool
setupData()¶ Perform setting up internal data needed from other components after they have been added to the owning entity.
-
JSON::json
getJSON() const¶ Get JSON representation of the component data needed to re-construct component from memory.
-
void
draw()¶ Expose the component data with ImGui.
Protected Attributes
-
float
m_TimeDirection= 1.0f¶
-
float
m_TransitionTime= 1.0f¶
-
float
m_RemainingTransitionTime= 0.0f¶
-
Ref<AnimatedModelResourceFile>
m_AnimatedModelResourceFile¶
-
float
m_CurrentTimePosition¶
-
float
m_SpeedMultiplier¶
-
RootExclusion
m_RootExclusion¶
-
bool
m_IsPlaying¶
-
bool
m_IsPlayOnStart¶
-
AnimationMode
m_AnimationMode¶
-