Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
sysorbitgeometry.h
Go to the documentation of this file.
1/* Conquer Space
2 * Copyright (C) 2021-2025 Conquer Space
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17#pragma once
18
19#include <vector>
20
21#include <glm/glm.hpp>
22
24#include "core/universe.h"
25
26namespace cqsp::client::systems {
28 public:
30 void GenerateOrbitLines();
31
33
34 private:
35 const int ORBIT_RESOLUTION = 500;
38
39 void GenerateOrbit(entt::entity body);
40 std::vector<glm::vec3> GenerateHyperbolicOrbit(const core::components::types::Orbit& orbit, double SOI);
41 std::vector<glm::vec3> GenerateEllipticalOrbit(const core::components::types::Orbit& orbit, double SOI);
42};
43} // namespace cqsp::client::systems
Definition: sysorbitgeometry.h:27
void GenerateOrbit(entt::entity body)
Definition: sysorbitgeometry.cpp:60
const int ORBIT_RESOLUTION
Definition: sysorbitgeometry.h:35
std::vector< glm::vec3 > GenerateEllipticalOrbit(const core::components::types::Orbit &orbit, double SOI)
Definition: sysorbitgeometry.cpp:105
int GetOrbitsGenerated()
Definition: sysorbitgeometry.h:32
core::Universe & universe
Definition: sysorbitgeometry.h:37
void GenerateOrbitLines()
Definition: sysorbitgeometry.cpp:36
SysOrbitGeometry(core::Universe &)
Definition: sysorbitgeometry.cpp:34
int orbits_generated
Definition: sysorbitgeometry.h:36
std::vector< glm::vec3 > GenerateHyperbolicOrbit(const core::components::types::Orbit &orbit, double SOI)
Definition: sysorbitgeometry.cpp:83
Definition: universe.h:38
Definition: imguidebugger.cpp:19