7 rot = glm::rotate(rot, glm::radians(
rotation.y), glm::vec3(0.0f, 1.0f, 0.0f));
8 rot = glm::rotate(rot, glm::radians(
rotation.x), glm::vec3(1.0f, 0.0f, 0.0f));
glm::vec3 rotation
Euler rotation in degrees.
glm::vec3 forward() const
Returns the normalized world-space direction in which the ship points.
glm::vec3 normalize_or_zero(const glm::vec3 &value)
Normalizes a direction with a stable fallback.