[ADDED] rotating bounding boxes
This commit is contained in:
11
src/main.cpp
11
src/main.cpp
@@ -12,6 +12,7 @@
|
||||
#include <opencv2/videoio.hpp>
|
||||
#include <opencv2/video.hpp>
|
||||
|
||||
#include "collision/collision.h"
|
||||
#include "gui/gui_interactable.h"
|
||||
#include "models/model.h"
|
||||
#include "renderEngine/loader.h"
|
||||
@@ -36,6 +37,16 @@ scene::Scene* current_scene;
|
||||
|
||||
int main(void)
|
||||
{
|
||||
|
||||
collision::Box box = { glm::vec3(0, 0, 0), glm::vec3(5, 2, 10) };
|
||||
box.SetRotation(180);
|
||||
std::cout << box.size.x << std::endl;
|
||||
std::cout << box.size.y << std::endl;
|
||||
std::cout << box.size.z << std::endl;
|
||||
|
||||
return 0;
|
||||
|
||||
|
||||
#pragma region OPENGL_SETTINGS
|
||||
if (!glfwInit())
|
||||
throw "Could not inditialize glwf";
|
||||
|
||||
Reference in New Issue
Block a user