Sponsored Links
-->

Wednesday, August 15, 2018

java - Box2d and LibGDX sprite out of sync with fixture - Stack ...
src: i.stack.imgur.com

Box2D is a free open source 2-dimensional physics simulator engine written in C++ by Erin Catto and published under the zlib license. It has been used in Crayon Physics Deluxe, Limbo, Rolando, Incredibots, Angry Birds, Tiny Wings, Transformice, Happy Wheels, and many online Flash games, as well as iPhone, iPad and Android games using the Cocos2d or Moscrif game engine and Corona framework.


Video Box2D



History

Box2D was first released as "Box2D Lite", a demonstration engine to accompany a physics presentation given by Erin Catto at GDC 2006. On September 11, 2007 it was released as open source on Sourceforge. On January 17, 2010 Box 2D moved the project to Google Code for hosting. On July 12, 2015 hosting was moved again, this time to GitHub.

On March 6, 2008, version 2.0 was launched, introducing continuous collision detection and revamping the API.


Maps Box2D



Cross-platform availability

Box2D is itself written in platform-independent C++ (usable on any system with a C++ compiler available). The engine may be compiled in fixed point and floating point modes, and has been used on the Nintendo DS, Wii, and several mobile phones (including Android, BlackBerry 10 and iOS) as well as most major operating systems.

The engine has been ported to many other programming languages and environments, including Java, Adobe Flash (in ActionScript and Haxe languages), C#, Lua, JavaScript, and D. Bindings exist to use the compiled library from Python and DarkBASIC.

On October 30, 2009, it was announced that Box2D was being integrated into the (now older) Torque 2D game engine.


Box2D [SETUP] Visual Studio on Windows - YouTube
src: i.ytimg.com


Programs that use the engine

  • BlitzBasic
  • ENIGMA Development Environment
  • GameMaker: Studio, uses the engine for physics simulation.
  • LibGDX, uses the physics engine for games and Lighting.
  • Stencyl, uses the physics engine for games, and allows export to Flash and iOS.
  • Unity
  • Construct2
  • Isogenic Engine
  • LÖVE, uses the physics engine for games
  • Clickteam Fusion
  • Defold, released by King in 2016
  • Corona SDK

Box2D, libGDX] Drawing a sprite in a body - Java-Gaming.org
src: oi39.tinypic.com


Features

Box2D performs constrained rigid body simulation. It can simulate bodies composed of convex polygons, circles, and edge shapes. Bodies are joined together with joints and acted upon by forces. The engine also applies gravity, friction, and restitution.

Box2D's collision detection and resolution system consists of three pieces: an incremental sweep and prune broadphase, a continuous collision detection unit, and a stable linear-time contact solver. These algorithms allow efficient simulations of fast bodies and large stacks without missing collisions or causing instabilities.


Harvest Moon Style Game Prototype - Libgdx Java Box2D - YouTube
src: i.ytimg.com


Related engines

An earlier version of the Box2D engine, now known as Box2D Lite, was released primarily for educational purposes, based on a series of yearly Game Developers Conference presentations that Erin Catto has given. Box2D Lite uses many of the same algorithms as Box2D, but has a smaller feature set.

The Chipmunk physics engine (written in C) and Phys2D (written in Java) are both partially based on Box2D Lite. The physics engine used in SpriteKit for iOS and OS X uses Box2D internally.

The LiquidFun physics engine is a fork of Box2D by Google, which adds fluid simulation to the engine.

LibGDX uses a Java wrapper around native Box2D code written in C++ as its physics engine.


oz.box2D | oz
src: www.oz432.info


Articles

Itterheim and Wenderlich describe the usage of Box2D in the Cocos2d iPhone engine. An article in the Adobe Edge newsletter discusses the use of Box2D in Flash games.


Box2d Platformer Demo - YouTube
src: i.ytimg.com


See also

  • Chipmunk (software)

cinder | 1024 Architecture Blog / MadMapper, Video Mapping, Quartz ...
src: 1024d.files.wordpress.com


References


LIBGDX - Let's Make An Indie Game - Phase 2 Part 16 Box2D ...
src: i.ytimg.com


External links

  • Official website

Source of the article : Wikipedia

Comments
0 Comments