Hi,
I want to apply translation matrix to the CCSprite. cocos2dx has setRoatation, setScale apis for CCSprite. But it dont have translation matrix api.
Can anyone help me that how can i apply translation to the CCSprite.
Hi,
I want to apply translation matrix to the CCSprite. cocos2dx has setRoatation, setScale apis for CCSprite. But it dont have translation matrix api.
Can anyone help me that how can i apply translation to the CCSprite.
you have a set of pre computed affine transform (6 values) that you want to apply or override to a CCSprite, but there is no method and its value is protected.
I think you need to write your own class derived from sprite, and add the method to update the transform,