Page 1 of 1

Create destructible building

Posted: Thu May 09, 2013 6:16 pm
by blakey87
Hi iForce,

Do you have any advice on how I could create a destructible building in R.U.B.E, Im hoping to make this building tall too

Re: Create destructible building

Posted: Fri May 10, 2013 5:00 am
by iforce2d
It depends what you mean by destructible, but assuming you mean to chop the building into pieces, I don't think RUBE can help much with this. It would be something that your game engine needs to do at run-time. There are a few tutorials around dealing with this topic, probably the best I have come across is on Emanuele's site here:

http://www.emanueleferonato.com/2011/06 ... ith-box2d/
http://www.emanueleferonato.com/2011/06 ... 2d-part-2/

The source code shown there is of course for Flash, but the concepts are all the same for any port of Box2D.