Setting up SimpleAnimationControllers using setters
This commit is contained in:
@@ -24,8 +24,13 @@ namespace OpenVulkano::Scene
|
||||
float m_elapsed = 0;
|
||||
|
||||
public:
|
||||
SimpleAnimationController() = default;
|
||||
SimpleAnimationController(OpenVulkano::Scene::Node *node, OpenVulkano::Math::Pose<float> initialPose, OpenVulkano::Math::Pose<float> targetPose, float duration);
|
||||
SimpleAnimationController() { m_event += EventHandler(this, &SimpleAnimationController::OnAnimationCompleted); }
|
||||
|
||||
void SetNode(OpenVulkano::Scene::Node *node) { m_node = node; }
|
||||
void SetInitialPose(OpenVulkano::Math::Pose<float> pose) { m_initialPose = pose; }
|
||||
void SetTargetPose(OpenVulkano::Math::Pose<float> pose) { m_targetPose = pose; }
|
||||
void SetDuration(float duration) { m_duration = duration; }
|
||||
|
||||
void OnAnimationCompleted();
|
||||
void Tick() override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user