Removed useless comments
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# 3D Gravity Simulator Documentation
|
# 3D Gravity Simulato
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -13,8 +13,8 @@ Renderer::Renderer(int width, int height)
|
|||||||
: cameraPos(3e11f, 2e11f, 3e11f),
|
: cameraPos(3e11f, 2e11f, 3e11f),
|
||||||
cameraFront(glm::normalize(glm::vec3(0.0f) - glm::vec3(3e11f, 2e11f, 3e11f))),
|
cameraFront(glm::normalize(glm::vec3(0.0f) - glm::vec3(3e11f, 2e11f, 3e11f))),
|
||||||
cameraUp(0.0f, 1.0f, 0.0f),
|
cameraUp(0.0f, 1.0f, 0.0f),
|
||||||
cameraSpeed(1e9f), // Reduced speed
|
cameraSpeed(1e9f),
|
||||||
mouseSensitivity(0.05f), // Reduced sensitivity
|
mouseSensitivity(0.05f),
|
||||||
yaw(-45.0f),
|
yaw(-45.0f),
|
||||||
pitch(-30.0f),
|
pitch(-30.0f),
|
||||||
firstMouse(true),
|
firstMouse(true),
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ private:
|
|||||||
GLFWwindow* window;
|
GLFWwindow* window;
|
||||||
void drawSphere(const glm::vec3& position, float radius);
|
void drawSphere(const glm::vec3& position, float radius);
|
||||||
void createSphereMesh(float radius, int sectors, int stacks);
|
void createSphereMesh(float radius, int sectors, int stacks);
|
||||||
void drawDebugTriangle(); // Add this line
|
void drawDebugTriangle(); // Debug function to draw a triangle
|
||||||
|
|
||||||
GLuint sphereVAO, sphereVBO, sphereEBO;
|
GLuint sphereVAO, sphereVBO, sphereEBO;
|
||||||
int sphereVertexCount, sphereIndexCount;
|
int sphereVertexCount, sphereIndexCount;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
Simulator simulator;
|
Simulator simulator;
|
||||||
Renderer renderer(1600, 1200); // Increased window size for better visibility
|
Renderer renderer(1600, 1200);
|
||||||
|
|
||||||
// Sun (at the center)
|
// Sun (at the center)
|
||||||
simulator.addBody(CelestialBody(1.989e30f, glm::dvec3(0, 0, 0), glm::dvec3(0, 0, 0)));
|
simulator.addBody(CelestialBody(1.989e30f, glm::dvec3(0, 0, 0), glm::dvec3(0, 0, 0)));
|
||||||
|
|||||||
Reference in New Issue
Block a user