Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-22-2011, 10:08 AM   #1 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 38
AlphaMensch is on a distinguished road
Default CHiPMUNK displaying Shape?

hi,

I have a question:
Is there a way to displaying a Shape without cocos2d. For example:
Code:
splineShape->color = blackColor;
Or something like this?

AlphaMensch
AlphaMensch is offline   Reply With Quote
Old 03-30-2011, 12:32 AM   #2 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 342
flamingliquid is on a distinguished road
Default

Chipmunk (or just about any other physics engine) doesn't do any drawing of anything. The point of it (and the only thing it does) is to calculate the positions of bodies mathematically, taking into account forces, joints, etc (aka Physics).

If you are saying you aren't using Cocos2D, then I'm going to assume you are using UIKit.
Here is an excellent tutorial, using UIKit: An introduction to game physics with Chipmunk
__________________
17 year old nerd.
Send me a PM. Maybe I can help.
flamingliquid is offline   Reply With Quote
Old 03-31-2011, 01:37 PM   #3 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 38
AlphaMensch is on a distinguished road
Default

Quote:
Originally Posted by flamingliquid View Post
Chipmunk (or just about any other physics engine) doesn't do any drawing of anything. The point of it (and the only thing it does) is to calculate the positions of bodies mathematically, taking into account forces, joints, etc (aka Physics).

If you are saying you aren't using Cocos2D, then I'm going to assume you are using UIKit.
Here is an excellent tutorial, using UIKit: An introduction to game physics with Chipmunk
Thanks.
Yes I am using UIKit. Great Tutorial (I worked with it before) but this is no answer for my question.
I only want to display the line. I tried to draw a line with the same points but I havenīt any idea HOW to do it!!???
But thanks for your reply.

AlphaMensch
AlphaMensch is offline   Reply With Quote
Old 03-31-2011, 03:32 PM   #4 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 50
Paul10 is on a distinguished road
Default

Drawing a line or using an image really doesn't have anything to do with Chipmunk...Chipmunk is only a simulator of physics objects.

Maybe its not clear what you're doing. Could you post some code on how you "tried" to draw a line?
__________________
Paul
New iPhone Developer
Paul10 is offline   Reply With Quote
Old 04-01-2011, 12:10 PM   #5 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 38
AlphaMensch is on a distinguished road
Default

Quote:
Originally Posted by Paul10 View Post
Could you post some code on how you "tried" to draw a line?
I want something like
Code:
CGContextAddLines()
I am really new at iPhone development so I donīt know how to do it.

Itīs so difficult to draw a simple line???

Thanks
AlphaMensch
AlphaMensch is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 428
6 members and 422 guests
chemistry, Emy, hussain1982, Retouchable, skrew88, SLIC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,128
Posts: 402,922
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:15 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0