16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 11:19:19 +02:00

use glm instead of Math3D in vehicle

WARNING: Model rotation is broken
This commit is contained in:
docentYT
2026-04-27 13:07:38 +02:00
parent b712ca4d68
commit fae68642bc
16 changed files with 168 additions and 140 deletions

View File

@@ -34,6 +34,13 @@ glm::vec3 RotateY(glm::vec3 v, float angle)
return glm::vec3(c * v.x + s * v.z, v.y, c * v.z - s * v.x);
}
glm::dvec3 RotateY(glm::dvec3 v, double angle)
{
double s = sin(angle);
double c = cos(angle);
return glm::vec3(c * v.x + s * v.z, v.y, c * v.z - s * v.x);
}
void vector3::RotateZ(double angle)
{