Rayforce is a lightweight 3d physics game engine, with the purpose of having the maximum performance. Video of the demo
- CMake: Version 3.15 or higher
- C++17 Compiler: MSVC (Visual Studio), GCC, or Clang
- NVIDIA PhysX SDK: Must be pre-installed on your system
- Raylib: Used for rendering and window management (automatically fetched by CMake).
- NVIDIA PhysX: Utilized for high-performance physics simulations (must be installed separately).
To get a local copy up and running, follow these steps:
git clone https://github.com/Alvareos11/RayForce.git
cd RayForceWindows (MSVC):
- Download the NVIDIA PhysX SDK from the official repository
- Follow the PhysX Quick Start Guide for Windows
- Install to a location (default:
C:\Program Files\NVIDIA PhysX SDKor/usr/localon Linux/macOS) - Set the environment variable:
PHYSX_PATH=<your_physx_installation_path>
Linux/macOS:
# Refer to NVIDIA PhysX official documentation for your OS
# After installation, set:
export PHYSX_PATH=/usr/local # or your custom installation pathWindows:
- Download CMake from https://cmake.org/download/
- Visual Studio 2022 with C++17 or higher
Linux:
sudo apt-get install cmake build-essentialmacOS:
brew install cmakeUsing CMake from the root directory:
cd RayForce
mkdir build
cd build
cmake ..
cmake --build . --config ReleaseAlternatively, on Linux/macOS with Make:
cd RayForce
mkdir build
cd build
cmake ..
makePhysX Library Not Found:
- Ensure PhysX SDK is properly installed
- Set the
PHYSX_PATHenvironment variable before running CMake if you don`t use any packet manager:# Windows set PHYSX_PATH=C:\path\to\physx # Linux/macOS export PHYSX_PATH=/path/to/physx
- Then reconfigure CMake:
cmake ..
On Linux / Raspberry Pi: If the engine fails to start, force the OpenGL version by running:
MESA_GL_VERSION_OVERRIDE=3.3 ./physics_demoRayForce is an open-source project that integrates third-party technologies. By using this software, you acknowledge and agree to the license terms of the following components:
This project uses the NVIDIA® PhysX® SDK.
- Copyright © 2026 NVIDIA Corporation. All rights reserved.
- Licensed under the BSD-3-Clause License.
- NVIDIA® and PhysX® are registered trademarks of NVIDIA Corporation.
This project uses raylib for window management and rendering.
- Copyright © 2013-2026 Ramon Santamaria (@raysan5).
- Licensed under the zlib/libpng License.
RayForce is licensed under the GNU General Public License v3.0 (GPL-3.0). Copyright © 2026 Alvareos11.
This project uses 3D models from the glTF Sample Models repository by Khronos Group.
- These models are used for testing and demonstration purposes.
- Licensed under CC-BY 4.0.