Adding skeleton

This commit is contained in:
Dynamitos committed 2024-04-22 12:47:05 +02:00
1 parent ad8f30f26e
commit 3895fbb3d3
19 files changed
+491 -35

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#include "FlyCam.h"
FlyCam::FlyCam(PScene scene)
: Actor(scene)
{
attachComponent<Component::Camera>().mainCamera = true;
attachComponent<Component::KeyboardInput>();
}
FlyCam::~FlyCam()
{}
Component::Camera& FlyCam::getCamera()
{
return accessComponent<Component::Camera>();
}
Component::KeyboardInput& FlyCam::getKeyboardInput()
{
return accessComponent<Component::KeyboardInput>();
}