/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * Copyright (c) 2021 Silverlan
 */

#ifndef __C_PARTICLE_OPERATOR_CYLINDRICAL_TOROIDAL_HPP__
#define __C_PARTICLE_OPERATOR_CYLINDRICAL_TOROIDAL_HPP__

#include "pragma/particlesystem/operators/c_particle_operator_world_base.hpp"

class DLLCLIENT CParticleOperatorToroidalVortex : public CParticleOperatorWorldBase {
  public:
	CParticleOperatorToroidalVortex() = default;
	virtual void Initialize(pragma::CParticleSystemComponent &pSystem, const std::unordered_map<std::string, std::string> &values) override;
	virtual void Simulate(CParticle &particle, double tDelta, float strength) override;
	virtual void Simulate(double tDelta) override;
  private:
	Vector3 m_vAxis = {0.f, 1.f, 0.f};
	float m_fHeight = 1.f;
	float m_fRadius = 1.f;
	float m_fStrength = 2.f;
	float m_fDivergence = 0.f;

	float m_dtStrength = 0.f;
	Vector3 m_dtOrigin = {};
	Vector3 m_dtAxis = {};
	Quat m_dtRotation = uquat::identity();
};

#endif
