Skip to main content
Tweeted twitter.com/#!/StackGameDev/status/606652252175114240
Clarified title. Removed fluff. Rehosted image on StackExchange to guard against possible future dead link.
Source Link
Anko
  • 13.5k
  • 10
  • 56
  • 82

In Cocos2D collision detection, how do I check for collisions against a randoman arbitrary user-drawn shape?

I would like to brainstorm a few ways of handling howwant to detect a collision between a sprite and a user generated-generated shape of some sort.

For example. There are 3 objects on the screen. The user takes their finger and draws an abnormal shape around 2 of the objects. I need to detect those 2 objects.

alt text http://desmond.yfrog.com/Himg339/scaled.php?tn=0&server=339&filename=f2i.png&xsize=640&ysize=640user shape in purple, game objects in green and red

Anyone have any good ideas on how toHow do I approach this efficiently using Cocos2D?

Cocos2D collision detection against a random shape

I would like to brainstorm a few ways of handling how to detect a collision between a sprite and a user generated shape of some sort.

For example. There are 3 objects on the screen. The user takes their finger and draws an abnormal shape around 2 of the objects. I need to detect those 2 objects.

alt text http://desmond.yfrog.com/Himg339/scaled.php?tn=0&server=339&filename=f2i.png&xsize=640&ysize=640

Anyone have any good ideas on how to approach this efficiently using Cocos2D?

In Cocos2D, how do I check for collisions against an arbitrary user-drawn shape?

I want to detect a collision between a sprite and a user-generated shape of some sort.

For example. There are 3 objects on the screen. The user takes their finger and draws an abnormal shape around 2 of the objects. I need to detect those 2 objects.

user shape in purple, game objects in green and red

How do I approach this efficiently using Cocos2D?

Source Link
David McGraw
  • 4.1k
  • 2
  • 33
  • 38

Cocos2D collision detection against a random shape

I would like to brainstorm a few ways of handling how to detect a collision between a sprite and a user generated shape of some sort.

For example. There are 3 objects on the screen. The user takes their finger and draws an abnormal shape around 2 of the objects. I need to detect those 2 objects.

alt text http://desmond.yfrog.com/Himg339/scaled.php?tn=0&server=339&filename=f2i.png&xsize=640&ysize=640

Anyone have any good ideas on how to approach this efficiently using Cocos2D?