enemy position and rotation

This commit is contained in:
h4570
2022-08-12 10:24:33 +02:00
parent cbe346900d
commit d65561487c
6 changed files with 33 additions and 29 deletions
+3 -3
View File
@@ -338,9 +338,9 @@ void M4x4::rotationZ(const float& v) {
void M4x4::rotationByAngle(const float& angle, const Vec4& axis) {
Vec4 localAxis = Vec4(axis);
localAxis.normalize();
float x = localAxis.x;
float y = localAxis.y;
float z = localAxis.z;
const float& x = localAxis.x;
const float& y = localAxis.y;
const float& z = localAxis.z;
float c = Math::cos(angle);
float s = Math::sin(angle);