implemented shells

This commit is contained in:
devZoGok
2025-05-14 19:34:01 +03:00
parent 6ea9baaed4
commit 94ee446741
13 changed files with 116 additions and 39 deletions
+4 -1
View File
@@ -45,8 +45,11 @@ namespace battleship{
}
void GameObject::orientAt(Quaternion rotQuat){
model->setOrientation(rotQuat);
rot = rotQuat;
model->setOrientation(rotQuat);
leftVec = model->getGlobalAxis(0);
upVec = model->getGlobalAxis(1);
dirVec = model->getGlobalAxis(2);
}
//TODO remove neccessity to create a material for an invisible mesh