Game Development Community

Box2d is easier on the engine

by rennie moffat · in Torque Game Builder · 02/17/2011 (12:22 pm) · 6 replies

Hi I have been talking to some people but have not been able to get a clear understanding of why, if using box2d physics, that it will be easier on my engine. If anyone can explain that nicely, I would appreciate it.


Cheers

About the author

My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.


#1
02/17/2011 (2:29 pm)
Box2D is a highly optimized physics library. It was recently shown that Angry Birds was created with it.

The physics built into T2D is quite good, but it isn't as fast as Box2D.

You can learn more at this site.

I did read somewhere on the forums that you cannot use the Torque Game Builder editor once you integrate... I'm not certain how true that is, but you might want to research that if you need to build levels in the editor.
#2
02/17/2011 (2:36 pm)
Thanks William.
There is this thread here... www.garagegames.com/community/forums/viewthread/83463/3
So I think you can.



My situation in for iTGB, I posted here thinking there would be more insight. My scenario does not involve anything as demanding as Angry Birds. I simply have 50- 100, objects, "pegs", which are immovable, send physics and receive collisions. This number (50-100) is pushing the iTGB engine too hard, to the point where it is running at 7 fps. It was suggested by Michael Perry that I look into Box2D, but given my scenario I am trying to figure out the impact it will have.



#3
02/17/2011 (3:11 pm)
Well I imagine that no one will be able to provide you exact figures on the impact, but I assure you it'll be "substantial".
#4
02/17/2011 (3:16 pm)
So, in theory, would it simply mean, not using any iTGB physics (not applying to any object) and then incorporating Box2D and applying it to the relevant objects?



#5
02/17/2011 (6:34 pm)
http://www.garagegames.com/community/blog/view/18641/3

<shrug> Looks like T2D already has Box2D integrated. Maybe they'll go back and make it native for TGB/iTGB....
#6
02/17/2011 (7:01 pm)
I wish they would.