Swap texture on cocos2d v3 chipmunk physics body?

Official forum for the Chipmunk2D Physics Library.
Post Reply
jocomojo
Posts: 4
Joined: Sat Mar 15, 2014 10:07 pm
Contact:

Swap texture on cocos2d v3 chipmunk physics body?

Post by jocomojo »

How would I swap/replace the texture on a physics body during runtime?

This is with cocos2d v3.
jocomojo
Posts: 4
Joined: Sat Mar 15, 2014 10:07 pm
Contact:

Re: Swap texture on cocos2d v3 chipmunk physics body?

Post by jocomojo »

I tried this but it's for cocos2d-X and didn't work

Code: Select all


mySprite->setTexture(CCTextureCache::sharedTextureCache()->addImage("newImage.png"));


Post Reply

Who is online

Users browsing this forum: Heise IT-Markt [Crawler] and 10 guests