aPhysics

Getting Started with aPhysics

This guide walks you through setting up, building, and running aPhysics on your machine.


Prerequisites

  1. Clang 23+:
    • aPhysics is strictly built with Clang (minimum version 23).
    • GCC is not supported.
    • Verify your compiler version:
      clang --version
      
  2. Bazel 9+:
    • Bazel 9 is the required build tool (version 9.2.0 is pinned in .bazelversion).
    • We recommend installing bazelisk so that Bazel 9 is invoked automatically.
    • Verify your Bazel version:
      bazel --version
      

Cloning the Repository

Clone the repository using SSH or HTTPS:

# Using SSH (recommended)
git clone git@github.com:Aarav90-cpu/aPhysics.git
cd aPhysics

# Or using HTTPS
git clone https://github.com/Aarav90-cpu/aPhysics.git
cd aPhysics

Building and Running

Build All Targets

bazel build //...

Run the Physics Engine Information Utility

bazel run //tools:aphysics_info

Execute Tests

bazel test //...

Clean Workspace

bazel clean

Next Steps