• Benvenuto in Making Videogames!
  • Dai sfogo alla tua fantasia!
  • Crea il tuo Videogioco!
Benvenuto ospite! Login Registrati




Valutazione discussione:
  • 0 voto(i) - 0 media
  • 1
  • 2
  • 3
  • 4
  • 5
Physics Body Editor
#1
Introduction
Physics Body Editor is all about making your life easier with physics engines. Specifically, it targets the creation of collision shapes for your game objects: we call them rigid bodies. It can also let you combine these objects together and link them with joints to create complex objects: we call them dynamic objects.

The problem we want to solve is as follows: have a look at the image on the right, I wanted to create a bottle that can hold objects inside it. At first, I used a drawing tool to draw my shape points over the bottle image, and I reported the values in my game. For each point, I had to convert from pixel units to world units of course. Boring. Oh, and guess what? It didn’t work! Indeed, physics engines usually only work with convex polygons! On to decompose the shape into multiple convex polygons by hand… More than boring. And of course, each time I wanted to do a little change, I had to go over the same process.

I guess you understand why such automated tool can be handy: it converts pixel units to world units, decomposes the shape into multiple convex polygons, and lets you test the result directly!

Features
  • Automatically decomposes concave shapes into convex polygons,
  • Automatically traces your images if needed,
  • Supports multiple outlines for a single body,
  • Supports polygon and circle shapes,
  • Reference point location can be changed,
  • Visual configurable grid with snap-to-grid option,
  • Built-in collision tester! Throw balls at your body to test it,
  • Loader provided for LibGDX game framework,
  • Simple export format (JSON), to let you create your own loader for any framework in any language.

[thumb]http://www.aurelienribon.com/blog/wp-content/uploads/2012/04/pbe-02.jpg[/thumb] [thumb]http://www.aurelienribon.com/blog/wp-content/uploads/2012/04/pbe-04.jpg[/thumb] [thumb]http://www.aurelienribon.com/blog/wp-content/uploads/2012/04/pbe-03.jpg[/thumb] [thumb]http://www.aurelienribon.com/blog/wp-content/uploads/2012/04/pbe-05.jpg[/thumb]

Licenza: Open Source
Download: Physics Body Editor
 
Rispondi
  


Discussioni simili
Discussione Autore Risposte Letto Ultimo messaggio
  come scaricare bullet physics springofdajuwn 6 2,356 14-11-2012, 07:50 PM
Ultimo messaggio: springofdajuwn
  Bepu Physics for XNA 4 Riddick 1 1,577 21-11-2010, 03:46 PM
Ultimo messaggio: Riddick
  Lista Physics Engine Riddick 8 2,713 20-08-2010, 10:43 AM
Ultimo messaggio: Zapetino
  AwesomeAircraft Physics - NeoAxis Riddick 0 1,173 10-07-2010, 03:26 PM
Ultimo messaggio: Riddick

Vai al forum:


Browsing: 1 Ospite(i)