directional argument to orders

This commit is contained in:
devZoGok
2023-10-29 16:06:28 +02:00
parent 2a70f37657
commit acc5ad325b
9 changed files with 68 additions and 39 deletions
+3
View File
@@ -93,6 +93,9 @@ namespace battleship{
}
void GameObjectFrameController::update(){
for(GameObjectFrame &frame : gameObjectFrames)
frame.update();
Vector3 startPos = Root::getSingleton()->getCamera()->getPosition();
vector<Ray::CollisionResult> results;
Ray::retrieveCollisions(startPos, (screenToSpace(getCursorPos()) - startPos).norm(), Map::getSingleton()->getNodeParent()->getChild(0), results);