ecsgame/ECS/Components/MouseLook.h
karl 3fb23200fb Add system to switch between path and manual movement
This system automatically checks for entities with both movement methods, and activates/deactivates them when pressing P.
2020-10-03 17:44:52 +02:00

20 lines
312 B
C

//
// Created by karl on 07.01.20.
//
#ifndef ECSGAME_MOUSELOOK_H
#define ECSGAME_MOUSELOOK_H
struct MouseLook {
explicit MouseLook(float sensitivity) : sensitivity(sensitivity) {}
float sensitivity;
double yaw = 0.0;
double pitch = 0.0;
bool is_active;
};
#endif //ECSGAME_MOUSELOOK_H