"Tag" a CCPhysics body?
Posted: Mon Jun 02, 2014 3:39 pm
Hello,
Is there a way to add some additional info (string, int, etc) that I can set/reset/retrieve at runtime to a CCPhysics body such as a tag?
For example I have about 100 CCPhysics bodies and need to access user defined info (the "tag" I request) when a collision happens.
Thanks!
Is there a way to add some additional info (string, int, etc) that I can set/reset/retrieve at runtime to a CCPhysics body such as a tag?
For example I have about 100 CCPhysics bodies and need to access user defined info (the "tag" I request) when a collision happens.
Thanks!