I've been trying to set a contact listener that creates a joint on contact between two sprites which have their own classes. Both sprites are inheriting from NSObject and they are initialized in their parent layer (init method of HelloWorldLayer.mm). It is quite straightforward when everything is in the same class, but in a case like this where sprites have their own classes how will it be done?
Tell me more
×
Game Development Stack Exchange is a question and answer site for
professional and independent game developers. It's 100% free, no registration required.
|
|
||||
|