trick/trick_sims/SIM_billiards
jmpenn 2a03ff5cf4
Replace sprintf with snprintf in all of Trick source. #1384 (#1392)
* Replace sprintf with snprintf in all of Trick source. #1384

* Don't add -Werror for MacOS because of deprecated sprintf warnings which we cant get rid of because SWIG. #1384

* Fixed an unbalanced parenthesis in S_overrides.mk. #1384
2022-11-15 15:00:05 -06:00
..
models Replace sprintf with snprintf in all of Trick source. #1384 (#1392) 2022-11-15 15:00:05 -06:00
Modified_data Minor improvement to SIM_billiards 2022-07-20 15:56:02 -05:00
RUN_break Refactor graphics client to run in a single thread; remove extraneous files 2022-07-14 16:07:14 -05:00
RUN_hexagon Refactor graphics client to run in a single thread; remove extraneous files 2022-07-14 16:07:14 -05:00
RUN_test Refactor graphics client to run in a single thread; remove extraneous files 2022-07-14 16:07:14 -05:00
README.md Minor improvement to SIM_billiards 2022-07-20 15:56:02 -05:00
S_define Refactor graphics client to run in a single thread; remove extraneous files 2022-07-14 16:07:14 -05:00
S_overrides.mk Refactor graphics client to run in a single thread; remove extraneous files 2022-07-14 16:07:14 -05:00

Billiards Sim

Playable simulation of a billiards table. Includes friction, impulse collision handling, and cue forces currently.

Angular forces on cue ball, user control of parameters, and detailed physics writeup coming soon :)



Pool Table Display

Located in models/graphics/cpp, uses the Libigl library for visualization.

Compile

libigl must be downloaded from Github : https://github.com/libigl/libigl

Clone it somewhere accessible, like your home directory. It does not need to be compiled.

libigl depends on Eigen3, which may (or may not) need to be downloaded and installed : https://eigen.tuxfamily.org/index.php?title=Main_Page

To compile:

cd models/graphics/cpp
mkdir build
cd build
cmake ..
make

The provided input files will automatically run and connect to the display.