#pragma once

#include "cgp/05_vec/vec.hpp"

namespace cgp
{
	struct velocity_tracker
	{
		vec3 position_record;
		float time_record;

		vec3 velocity;
		float smoothing_weight = 0.6f;

		void set_record(vec3 const& position, float time);
		void add(vec3 const& position, float time);
	};
}