Skip to content

quannv108/GB2ShapeCache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GB2ShapeCache

GB2ShapeCache for cocos v3

Port from GB2ShapeCache-x original provide by http://www.code-and-web.de

How to use it:


    PhysicsSprite *sprite = PhysicsSprite::create();
    
    b2BodyDef bodyDef;
    bodyDef.allowSleep = true;
    bodyDef.type = b2BodyType::b2_staticBody;
    
    b2Body *body = world->CreateBody(&bodyDef);
    
    GB2ShapeCache::getInstance()->addFixturesToBody(body, name);
    
    sprite->setB2Body(body);

Contact me:

[1] Skype: kudo_108

[2] Facebook: http://facebook.com/kudo108

About

GB2ShapeCache for cocos v3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages