Skip to content

RyanYensch/3DPhysics

Repository files navigation

3DPhysics

Prerequisites

This project is built for Linux environments and requires a standard C++ build toolchain along with GLFW, OpenGL, and GLM.

To install all required dependencies on Debian/Ubuntu-based systems, run:

sudo apt update
sudo apt install build-essential libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev libglm-dev

Building and Running

  1. Compile the engine: Navigate to the project root directory and run:
make
  1. Launch the simulator: Once compilation is complete, execute the binary:
./simulator
  1. Clean the build: To remove compiled object files and the executable, run:
make clean

Controls

The engine features a free-fly camera and an integrated Dear ImGui overlay for debugging and object summoning.

Key / Action Function
W A S D Move the camera (Forward, Left, Backward, Right)
SPACE / L-SHIFT Move the camera (Up / Down)
Mouse Movement Look around (when cursor is locked to the window)
ESC Unlock the mouse cursor
Left Click Lock the mouse cursor to the game window
ENTER Toggle Pause / Play simulation
TAB Toggle the "Summon Object" GUI Menu

About

A Basic 3D Physics Engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors