Skip to content
Snippets Groups Projects
bat.hpp 491 B
Newer Older
Marie AUDOUARD's avatar
Marie AUDOUARD committed
#pragma once

#include "cgp/cgp.hpp"
#include "key_positions_structure.hpp"
Marie AUDOUARD's avatar
Marie AUDOUARD committed

using namespace cgp;

// The entire hierarchy

struct bat{
	double size;
	bool isdead;
	vec3 pos;
	vec3 pos_futur;
	// Timer used for the interpolation of the position
	cgp::timer_interval timer_mvt;
	// A helper structure used to store and display the key positions/time
	keyframe_structure keyframe;
	void initialize_mvt(vec3 p, numarray<vec3> key_positions, numarray<float> key_times);
	void update_mvt();
Marie AUDOUARD's avatar
Marie AUDOUARD committed
};