Coder Social home page Coder Social logo

physics's Introduction

What is this?

Physics is a physical world simulator and playground. You can add squares, circles, triangles, or draw your own shapes, and see them come to life with forces, friction, and inertia.

How to use?

Physics is not part of the Sugar desktop, but can be added. Please refer to;

How to upgrade?

On Sugar desktop systems;

How to integrate?

On Debian and Ubuntu systems;

apt install sugar-physics-activity

On Fedora systems;

dnf install sugar-physics

Physics depends on Python, Sugar Toolkit, Cairo, Telepathy, GTK+ 3, Pango, Box2d and Pygame.

Physics is started by Sugar.

Physics is packaged by Linux distributions;

How to develop?

  • setup a development environment for Sugar desktop,
  • install the dependencies, see below,
  • clone this repository,
  • edit source files,
  • test in Terminal by typing sugar-activity3

How to install dependencies for development

For development, install the Box2D library.

  • Install swig,
    • On Ubuntu/Debian, run sudo apt install swig
    • On Fedora/RHEL systems, run sudo dnf install swig
  • Install setuptools and pip,
    • On Ubuntu/Debian, run sudo apt install python3 python3-setuptools python3-pip python3-all-dev
    • On Fedora/RHEL, run sudo dnf install python3-pip python3-setuptools
  • Clone pybox2d and build, run
git clone https://github.com/pybox2d/pybox2d
cd pybox2d
# Make sure you have installed swig
python3 setup.py build
pip3 install . --system

physics's People

Contributors

pootle-sugarlabs avatar garycmartin avatar walterbender avatar quozl avatar bcjordan avatar svineet avatar srevinsaju avatar asafpm avatar samdroid-apps avatar ezequielpereira avatar leonardcj avatar i5o avatar aniket21mathur avatar rbuj avatar saumya-mishra9129 avatar devabnull avatar clytie avatar chimosky avatar jibby0 avatar kachachan avatar mslg avatar phf avatar akashgangil avatar ayushnawal avatar nicholaskernan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.