Coder Social home page Coder Social logo

qbox2d's Introduction

QBox2D

An attempt to use Erin Catto's Box2D (http://www.box2d.org) API with Qt/C++ Graphics VIew Framework

References:

This program was based on Erin Catto's Box2D (http://www.box2d.org) API

Angle computation was based on Thorbjørn Lindeijer's Box2D QML Plugin (https://github.com/bjorn/qml-box2d)

Simulation was based on "timerEvent" implementation found at a blog at http://blog.qt.digia.com/blog/2010/02/26/qt-box2d-is-easy/ wherein an archive can be seen on a comment (http://boulabiar.net/box2d/Box2Dm.7z).

Binaries:

First program I coded

https://www.dropbox.com/s/itdj4b4s0aagfex/QBox2D.exe

QTestbed (incomplete implementation of Testbed)... WARNING! The "mythical" mousejoint implementation is not yet supported

https://www.dropbox.com/s/evvbyfr4a1ryxxf/QTestbed.exe

The above executables were built under Qt4.8.4/VS2012... therefore update your VC++ Runtime if it asks for a dll

Use this link (http://www.microsoft.com/en-us/download/details.aspx?id=30679) or google it :)

Usage:

Simply include qbox2d.pri into your project

Don't forget to add qbox2dworld.h, qbox2dbody.h, etc. headers

Follow the conventional Box2D coding but modify function calls by changing the first letter into lowercase (e.g. CreateBody into createBody). Qt coding style is used instead of Box2D's when it comes to funcction calls.

Replace b2Body with QBox2DBody, and b2World with QBox2DWorld. These are just the currently supported classes. For future versions, replace "b2" prefix with "QBox2D".

qbox2d's People

Contributors

roniemartinez avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

wyyrepo

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.