/cyclone-physics

Cyclone Physics Engine from the book "Game Physics Engine Development"

Primary LanguageC++MIT LicenseMIT

Cyclone Physics

banner 1

The Physics engine that accompanies the book "Game Physics Engine Development" by Ian Millington. This version uses a modern conan/cmake based build system and should build out of the box on Windows and Linux systems.

The tag v1.0 (branch release/v1.0) represents a mostly untouched original code base with a modern build system. It was tested (built and ran all demos) on Windows 10 and Linux Ubuntu 22.04. The Ballistics and BigBallistics demo have issues firing the balls on Linux but everything else builds and works as expected. Any development beyond this tag will be more intrusive.

Requirements

Development is done with

  • Conan 2.x
  • CMake 3.27.x
  • Windows: Visual Studio 2022 Community Edition
  • Linux: Make

Building

banner 1

Conan install for debug and release builds

conan install . --build=missing --settings=build_type=Debug
conan install . --build=missing --settings=build_type=Release

CMake project generation

On Windows

cmake --preset conan-default

On Linux

cmake --preset conan-debug
cmake --preset conan-release

On Windows, open the generated solution file in the build folder. On Linux use

cmake --build build/Debug
cmake --build build/Release

Original Demos

Ballistic Screenshot 1

BigBallistic Screenshot 2

Blob Screenshot 3

Bridge Screenshot 4

Explosion Screenshot 5

Fireworks Screenshot 5

FlightSim Screenshot 5

Fracture Screenshot 5 Screenshot 5

Platform Screenshot 5

Ragdoll Screenshot 5

Sailboat Screenshot 5