Skip to content

donglaiw/pyphy-engine

This branch is 4 commits ahead of pulkitag/pyphy-engine:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8d4652d · Mar 25, 2017

History

46 Commits
Mar 25, 2017
Feb 25, 2016
Mar 25, 2017
May 26, 2015
Nov 28, 2015
Mar 25, 2017
Feb 25, 2016
Mar 25, 2017
Mar 25, 2017
Mar 25, 2017
May 24, 2015
Aug 26, 2015
May 26, 2015
Mar 25, 2017
Feb 25, 2016
Aug 26, 2015
May 27, 2015
Nov 18, 2015

Repository files navigation

Improved version of pyphy-engine, used in "Learning Visual Predictive Models of Physics for Playing Billiards, ICLR 2016" (arXiv) to simulate the billiards environments.

Usage

  1. output with default parameters (log for position and velocity)
python main.py --outDir result/
  1. output frames
python main.py --outDir result/ --outIm True
  1. change dynamics: friction and collision damp
python main.py --outDir result/ --outIm True --aFric 10 --aDamp 0.5
  1. change setup: ball (num, size, mass, init state), table (shape)
python main.py --outDir result/ --outIm True --ballNum 2 --ballRadius 10 --ballMass 15 --ballInit 5 --tableType 0 

Improvement

  • fixed bugs for multiple balls
  • add friction parameter
  • add collision damping parameter

About

Physics Engine in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%