improved unit creation

This commit is contained in:
devZoGok
2021-12-11 19:08:25 +02:00
parent 7cbd1b3880
commit aaf026c8a4
7 changed files with 101 additions and 133 deletions
+2 -2
View File
@@ -138,9 +138,9 @@ namespace battleship{
void Jet::pitch(float angle) {
Quaternion rotQuat = Quaternion(-angle / 180 * PI, leftVec);
dirVec = rotQuat*dirVec, upVec = rotQuat*upVec;
dirVec = rotQuat * dirVec, upVec = rotQuat * upVec;
horAngle = angle;
float yAngle = node->getOrientation().y;
float yAngle = model->getOrientation().y;
/*
node->setOrientation(vector3df(angle, 0, 0));
node->setOrientation(vector3df(angle, yAngle, 0));