Game Development Community

Integrating Chipmunk library

by Dhaval Shah · in iTorque 2D · 07/21/2010 (5:20 pm) · 10 replies

Hi guyz,
I am working on the project where i need to integrate chipmunk physics library with iTorque2d.Also I want to integrate so as it works in the Torque Game Builder. I am at the point where it is integrated in the Xcode version of torque but not in the editor.How can I integrate the chipmunk library with the torque game builder.

Moderator - Locked until EULA issue is resolved

Thread is locked
#1
07/21/2010 (6:49 pm)
Hi Dhavai, any ideas on how much performance improvement you get from this library?
#2
07/21/2010 (7:04 pm)
Rather than performance improvement, it gives me more control over the physics than torque usually gives.
Because torque physics is bit raw and I am working on a game which is more physics based.But I am bit stuck on hot to integrate chipmunk physics with the TGB editor
#3
07/21/2010 (7:06 pm)
If you would not get any performance gains, the use of it would be seriously restricted in it at all, as box2d is known to bring in some serious performance gains in contrast for example.


As for how to integrate it: you must totally replace all physics, large parts of the t2d space etc ...
its not like "drop in and it will work". Many things in TGB and iTGB base around its hardwired physics system, you need to replace them all.
#4
07/21/2010 (7:17 pm)
But is it possible to replace so that chipmunk works in editor itself.I got to work on the Xcode version but I want it to work in TGB editor.
#5
07/22/2010 (8:55 pm)
If you made changes to the iPhone project, repeat for the Mac project. Open the corresponding Xcode project and do whatever you did to the other one. Compile TGB and TGBGame. Cross fingers.
#6
07/22/2010 (8:58 pm)
Yeah but I just have the .app file for the TGB and not the xcode project for it. So how can I modify that. Any Ideas??
#7
07/23/2010 (3:06 am)
Sure you have the project. its in the compilers folder (the regular xcode project, not the _iphone one) where it always has been and if you integrated chipmunk it actually should work mostly out of the box after the recompile.
#8
07/23/2010 (4:17 pm)
Thanks.It did work to a extent.I ma now trying to play the physics only when play button or F5 is pressed.As it is written in the editor files I am trying a way to modify those.
#9
07/23/2010 (8:49 pm)
Hi All,
It works in the editor but then it does not work when I hit play . Can anyone explain hot the .app is created from the TGB editor or how can I build it at the runtime.
#10
08/24/2010 (8:58 pm)
@Dhaval Shah - Please check your e-mail. I have sent you an e-mail of official capacity regarding engine ownership.