I have 3 questions:
I know when I want to set shader for Sprite object by using spr1->setShaderProgram(glProgram)However, I want to set shader for an Armature object. How can I do that?
In CCSprite, I can use setBlendFunc, what about in Armature.
I read this article http://blog.muditjaju.infiniteeurekas.in/?p=1 and I see the idea to detect collision between 2 sprites. But I want to write a extended function which can detect collision between different object like sprite vs sprite, sprite vs Armature, Amature vs Armature. How can I do that?
you can do it like this :Armature->setShaderProgram(glProgram) just like sprite,but the performance of the mobile phone is bad
@mike1989a How bad? Can you explain more? I'm going to use this function because I want to detect the collision exactly. Do you have any ideas? I'm making a gun shooting game, so when I shoot in a part of enemy (like arm, leg), it has to affect.