mirror of
https://github.com/antopilo/Nuake.git
synced 2026-01-04 22:10:34 +03:00
Moved physics and application outside of core
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include <src/Scene/Components/QuakeMap.h>
|
||||
#include <src/Vendors/imgui/imgui.h>
|
||||
#include <src/Vendors/imgui/ImGuizmo.h>
|
||||
#include <src/Core/Physics/PhysicsManager.h>
|
||||
#include <src/Physics/PhysicsManager.h>
|
||||
#include "src/Scene/Components/BoxCollider.h"
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
@@ -33,9 +33,9 @@
|
||||
#include <src/Rendering/SceneRenderer.h>
|
||||
|
||||
#include "src/Misc/WindowTheming.h"
|
||||
#include <src/Core/Application.h>
|
||||
#include <src/Application/Application.h>
|
||||
|
||||
#include <src/Core/EntryPoint.h>
|
||||
#include <src/Application/EntryPoint.h>
|
||||
|
||||
#include "src/EditorApplication.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include <src/Core/Application.h>
|
||||
#include <src/Application/Application.h>
|
||||
#include <src/Window.h>
|
||||
|
||||
#include "Windows/EditorInterface.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include <src/Core/Layer.h>
|
||||
#include <src/Application/Layer.h>
|
||||
|
||||
namespace Nuake {
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <src/Rendering/Vertex.h>
|
||||
#include <src/Scene/Scene.h>
|
||||
#include <src/Resource/Model.h>
|
||||
#include <src/Core/Physics/PhysicsShapes.h>
|
||||
#include <src/Physics/PhysicsShapes.h>
|
||||
|
||||
#include "Gizmos/CapsuleGizmo.h"
|
||||
#include "Gizmos/CylinderGizmo.h"
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "src/Rendering/Textures/Texture.h"
|
||||
#include "src/Rendering/Textures/MaterialManager.h"
|
||||
|
||||
#include "src/Core/Physics/PhysicsManager.h"
|
||||
#include "src/Physics/PhysicsManager.h"
|
||||
|
||||
#include "src/Vendors/glm/gtc/type_ptr.hpp"
|
||||
#include "src/Vendors/glm/gtx/matrix_decompose.hpp"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "Engine.h"
|
||||
#include "src/Core/Physics/PhysicsManager.h"
|
||||
#include "src/Physics/PhysicsManager.h"
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#include "src/Core/Input.h"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include "IApplicationModule.h"
|
||||
#include "Core.h"
|
||||
#include "src/Core/Core.h"
|
||||
#include "LayerStack.h"
|
||||
|
||||
#include <string>
|
||||
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "Core.h"
|
||||
#include "src/Core/Core.h"
|
||||
#include "Application.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "Core.h"
|
||||
#include "src/Core/Core.h"
|
||||
|
||||
|
||||
#include <vector>
|
||||
@@ -1,8 +1,8 @@
|
||||
#include "CharacterController.h"
|
||||
#include "src/Core/Physics/PhysicsManager.h"
|
||||
#include "src/Core/Physics/RaycastResult.h"
|
||||
#include "src/Physics/PhysicsManager.h"
|
||||
#include "src/Physics/RaycastResult.h"
|
||||
|
||||
#include "src/Core/Physics/PhysicsManager.h"
|
||||
#include "src/Physics/PhysicsManager.h"
|
||||
|
||||
namespace Nuake
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
#include "src/Core/Core.h"
|
||||
#include "src/Core/Maths.h"
|
||||
#include "src/Core/Physics/PhysicsShapes.h"
|
||||
#include "src/Physics/PhysicsShapes.h"
|
||||
#include "src/Scene/Entities/Entity.h"
|
||||
|
||||
namespace Nuake
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "src/Core/Core.h"
|
||||
#include "src/Core/Logger.h"
|
||||
#include "src/Core/Maths.h"
|
||||
#include <src/Core/Physics/PhysicsShapes.h>
|
||||
#include <src/Physics/PhysicsShapes.h>
|
||||
#include "src/Scene/Components/TransformComponent.h"
|
||||
#include "src/Scene/Components/CharacterControllerComponent.h"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <map>
|
||||
#include "RaycastResult.h"
|
||||
|
||||
#include <src/Core/Physics/GhostObject.h>
|
||||
#include <src/Physics/GhostObject.h>
|
||||
#include "CharacterController.h"
|
||||
|
||||
#include "Jolt/Jolt.h"
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "GhostObject.h"
|
||||
|
||||
#include <src/Core/Physics/PhysicsManager.h>
|
||||
#include "src/Physics/PhysicsManager.h"
|
||||
|
||||
namespace Nuake
|
||||
{
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "src/Rendering/Textures/Material.h"
|
||||
#include "src/Rendering/Mesh/Mesh.h"
|
||||
#include "src/Core/Physics/Rigibody.h"
|
||||
#include "src/Physics/Rigibody.h"
|
||||
|
||||
namespace Nuake {
|
||||
class BSPBrushComponent
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "src/Core/Physics/PhysicsShapes.h"
|
||||
#include "src/Physics/PhysicsShapes.h"
|
||||
#include "src/Core/Core.h"
|
||||
|
||||
namespace Nuake {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "src/Core/Physics/PhysicsShapes.h"
|
||||
#include "src/Physics/PhysicsShapes.h"
|
||||
#include "src/Core/Core.h"
|
||||
|
||||
namespace Nuake
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "src/Core/Physics/CharacterController.h"
|
||||
#include "src/Physics/CharacterController.h"
|
||||
|
||||
namespace Nuake
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "src/Core/Physics/PhysicsShapes.h"
|
||||
#include "src/Physics/PhysicsShapes.h"
|
||||
#include "src/Core/Core.h"
|
||||
|
||||
namespace Nuake
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "src/Core/Physics/PhysicsShapes.h"
|
||||
#include "src/Physics/PhysicsShapes.h"
|
||||
#include "src/Core/Core.h"
|
||||
|
||||
namespace Nuake {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
#include "RigidbodyComponent.h"
|
||||
|
||||
#include "src/Core/Physics/Rigibody.h"
|
||||
#include "src/Core/Physics/PhysicsManager.h"
|
||||
#include "src/Physics/Rigibody.h"
|
||||
#include "src/Physics/PhysicsManager.h"
|
||||
#include "src/Rendering/Renderer.h"
|
||||
|
||||
namespace Nuake {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "src/Core/Physics/PhysicsShapes.h"
|
||||
#include "src/Physics/PhysicsShapes.h"
|
||||
#include "src/Core/Core.h"
|
||||
|
||||
namespace Nuake {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "src/Core/Physics/GhostObject.h"
|
||||
#include "src/Physics/GhostObject.h"
|
||||
#include <vector>
|
||||
|
||||
namespace Nuake {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "src/Core/Core.h"
|
||||
#include "src/Core/OS.h"
|
||||
#include "src/Core/Physics/PhysicsManager.h"
|
||||
#include "src/Physics/PhysicsManager.h"
|
||||
|
||||
#include "src/Scene/Systems/ScriptingSystem.h"
|
||||
#include "src/Scene/Systems/PhysicsSystem.h"
|
||||
@@ -524,7 +524,7 @@ namespace Nuake
|
||||
transformComponent.SetLocalRotation(boneRotation);
|
||||
transformComponent.SetLocalScale(boneScale);
|
||||
transformComponent.SetLocalTransform(c.Transform);
|
||||
transformComponent.Dirty = false;
|
||||
//transformComponent.Dirty = false;
|
||||
|
||||
CreateSkeletonTraverse(boneEntity, c);
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "src/Scene/Components/ModelComponent.h"
|
||||
#include <src/Scene/Components/RigidbodyComponent.h>
|
||||
#include "src/Scene/Entities/Entity.h"
|
||||
#include <src/Core/Physics/PhysicsManager.h>
|
||||
#include <src/Physics/PhysicsManager.h>
|
||||
#include <src/Scene/Components/CharacterControllerComponent.h>
|
||||
#include <src/Scene/Components/QuakeMap.h>
|
||||
#include <src/Scene/Components/BSPBrushComponent.h>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "ScriptModule.h"
|
||||
#include <iostream>
|
||||
#include <wren.h>
|
||||
#include "../Core/Physics/PhysicsManager.h"
|
||||
#include "src/Physics/PhysicsManager.h"
|
||||
|
||||
namespace Nuake
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <wren.h>
|
||||
#include "Engine.h"
|
||||
|
||||
#include "src/Core/Physics/PhysicsManager.h"
|
||||
#include "src/Physics/PhysicsManager.h"
|
||||
|
||||
#include "../Scene/Entities/Entity.h"
|
||||
#include <src/Scene/Components/TransformComponent.h>
|
||||
|
||||
Reference in New Issue
Block a user