Using cocoa 2d or chipmunk physics

Member
Posts: 43
Joined: 2009.04
Post: #1
Can anyone help me by giving me a link with how to learn how to use chipmunk physics or cocoa 2d

Thanks
Chris
Quote this message in a reply
Moderator
Posts: 682
Joined: 2002.11
Post: #2
These should help you.

http://lmgtfy.com/?q=chipmunk+physics
http://lmgtfy.com/?q=cocos2d

Also, I think you mean cocos2D, not "cocoa 2D".

My web site - Games, music, Python stuff
Quote this message in a reply
Member
Posts: 43
Joined: 2009.04
Post: #3
yeah thanks. I hate this forum already I'm leaving
Quote this message in a reply
Moderator
Posts: 682
Joined: 2002.11
Post: #4
It would have been very helpful if you had said something like "I've already tried the tutorials on the main site. Is there anything else?" The lack of information made me assume you were just looking for the main sites, which Google is perfectly good for finding. If you've tried the standard documentation, why didn't you like it?

My web site - Games, music, Python stuff
Quote this message in a reply
Member
Posts: 43
Joined: 2009.04
Post: #5
Yeah I have read the tutorials but I need more help with it
Quote this message in a reply
Moderator
Posts: 682
Joined: 2002.11
Post: #6
You really need to be more specific.

My web site - Games, music, Python stuff
Quote this message in a reply
Member
Posts: 43
Joined: 2009.04
Post: #7
Ok so can you help me with how to get it set up!!
Quote this message in a reply
Moderator
Posts: 682
Joined: 2002.11
Post: #8
I still don't even know what library you're talking about. Chipmunk? Cocoa 2D graphics APIs? Cocos2D for iPhone?

My web site - Games, music, Python stuff
Quote this message in a reply
Sage
Posts: 1,482
Joined: 2002.09
Post: #9
If you want to add Chipmunk to your iPhone project, the simplest thing to do is just copy the src/ directory from Chipmunk into your XCode project. You could also build a static library of it if you want to control the build settings separately from the rest of your project, but I've never felt the need to. Also, you'll want to change the floating point type Chipmunk uses from double to float. (see the top of chipmunk.h)

I've never actually used Cocos2D, but I would expect that it has a bunch of tutorial projects available. Try using one of those as a template. Cocos2D also comes with Chipmunk already in it.

Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
Quote this message in a reply
Moderator
Posts: 1,560
Joined: 2003.10
Post: #10
chrism, please read and absorb this information, and you'll have a much better experience at this site and anywhere else like it: http://www.mikeash.com/getting_answers.html
Quote this message in a reply
Member
Posts: 43
Joined: 2009.04
Post: #11
Thanks for the help
Quote this message in a reply
Member
Posts: 43
Joined: 2009.04
Post: #12
This is a nice link that i found for chipmunk physics if anyone else is interestedhttp://www.alexandre-gomes.com/articles/.../setup.php
Quote this message in a reply
Apprentice
Posts: 10
Joined: 2009.04
Post: #13
That is a nice link, sadly the tut doesn't work for me. I'm guessing it's a change to the Chipmunk source?
Quote this message in a reply
Member
Posts: 43
Joined: 2009.04
Post: #14
I havnt tried it completely yet but when I do I will tell you my results!
Quote this message in a reply
Moderator
Posts: 450
Joined: 2003.08
Post: #15
I've been following this tutorial a bit: http://monoclestudios.com/cocos2d_whitepaper.html It doesn't work entirely for me, not sure why, had to delete a few things, but I did eventually get it working. Give it a try. Feel free to talk to me on AIM if you have any issues.
Alex
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Chipmunk physics accessing shapes in multiple methods issue JinnoRb 0 2,062 Mar 24, 2010 11:53 AM
Last Post: JinnoRb
  chipmunk-physics ?????? imaumac 2 2,679 Oct 11, 2008 02:24 PM
Last Post: imaumac