This project implements Reynolds' Steering Behaviors using OpenGL.
To ensure all submodules are cloned properly, use the following command:
git clone --recursive https://github.com/AakrishtSP/Reynolds-Steering-Behaviours.gitIf you forgot to clone recursively, you can initialize and update submodules manually:
git submodule update --init --recursive- CMake (>=3.30 recommended)
- A C++ compiler with C++17 support
- OpenGL (typically provided by your system or graphics drivers)
- GLFW, GLM, DearImGui, glad (included as submodules)
Prerequisite: Install dependencies Ubuntu:
sudo apt install build-essential wayland-protocols libwayland-dev libxkbcommon-dev libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libgl1-mesa-dev cmakeArchLinux:
sudo pacman -S base-devel libxrandr libxinerama libxcursor libxi mesa cmake-
Navigate to the project directory:
cd Reynolds-Steering-Behaviours -
Create a build directory:
mkdir build && cd build
-
Run CMake to configure the project:
cmake ..
-
Compile the project:
cmake --build . --config ReleaseOr on Unix-based systems:
make -j$(nproc) -
Run the executable:
./build/bin/ReynoldsSteering
Ensure you have CMake and a compatible compiler installed. Then, follow these steps:
mkdir build
cd build
cmake ..
make -j$(nproc)mkdir build
cd build
cmake .. -G "Visual Studio 17 2022"Then, open the generated .sln file in Visual Studio and build the project.
Alternatively, use:
cmake --build . --config ReleaseRun the executable:
./build/bin/ReynoldsSteering.exeIf you run into issues with submodules, try:
git submodule update --init --recursive- If CMake fails to find OpenGL, ensure
GLFWand other dependencies are correctly set up. - If using
make, try runningcmake --build . --config Releaseinstead.