Improved compile time significantly

This commit is contained in:
2023-02-24 00:06:12 -08:00
parent 21b917cf71
commit 1d39e86d91
9 changed files with 60 additions and 17 deletions

View File

@ -22,5 +22,13 @@ void TicTacToeGame::onSceneUpdate() {
mouse *= 2.0f;
mouse -= glm::vec2(1, 1);
Camera *camera = getScene()->findComponent<Camera>();
if(camera == nullptr) return;
struct Ray3D ray;
glm::vec3 pos = glm::vec3(mouse.x * camera->orthoRight, mouse.y * camera->orthoBottom, 0.0f);
ray.direction = glm::vec3(0, 0, -15);
ray.origin = pos;
getScene()->debugRay((struct SceneDebugRay){ .start = ray.origin, .direction = ray.direction });
}

View File

@ -6,6 +6,7 @@
#pragma once
#include "scene/SceneItemComponent.hpp"
#include "TicTacToeTile.hpp"
#include "physics/3d/Ray3D.hpp"
namespace Dawn {
class TicTacToeGame : public SceneItemComponent {