Skip to content

lluisalemanypuig/physics-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Physiscs simulator

This repository offers a series of algorithms for real-time simulation of particles and systems of particles, including:

  • Size-less particles.
  • Sized particles (consider each particle has a certain radius).
  • Agent particles (simulation of agents for crowds).
  • Springs (1-dimensional springs).
  • Meshes of springs (2-dimensional springs - regular grid model).
  • Fluids (Newtonian).

Examples

See the examples directory to see how to use this library. Some of these examples have been recorded and pieced together to make some videos:

Also, the character-animation project shows how to use this library for crowd simulation.

Documentation

The docs contains the library's documentation generated with Doxygen.

Dependencies

Building the library can be done using the .pro file provided. In order to generate the Makefile the qmake tool is required (developed and tested under version 3.0). Also, a compiler that supports C++11 is needed. Also, OpenMP is needed for the parallelised version of some of the algorithms.

Building the library

One can build the library by issuing the following commands:

    qmake -makefile simulator/simulator.pro -o simulator-release/Makefile
    cd simulator-release && make

Context

This repository contains the first Computer Animation course project, carried out during the first semester of the academic year 2018-2019. The course is part of the Master in Innovation and Research in Informatics (MIRI) curriculum.