Структура для анимации
This commit is contained in:
@@ -10,12 +10,15 @@ enum figure_type
|
||||
FIGURE_SQUARE = 2
|
||||
};
|
||||
|
||||
struct figure_info {
|
||||
struct figure_animation_info {
|
||||
enum figure_type type;
|
||||
struct vec2 position;
|
||||
struct vec2 velocity;
|
||||
float rotation;
|
||||
float rotation_speed;
|
||||
|
||||
float angle;
|
||||
float angular_velocity;
|
||||
|
||||
float speed;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user