We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
CCPhysicsSprite was overriding only some of the getPosition methods
CCPhysicsSprite was overriding only some of the getPosition methods
Bug #2055 [Closed]
Status: | Closed | |
---|---|---|
Start date: | 2013-04-15 | |
Priority: | Normal | |
Due date: | ||
Assignee: | ||
% Done: | 100% |
|
Category: | linux | |
Target version: | cocos2d-2.1rc0-x-2.1.3 |
Fixed at https://github.com/cocos2d/cocos2d-x/pull/2231.
Details:
1) Fix CCPhysicsSprite getPosition variants …
CCPhysicsSprite was overriding only some of the getPosition
methods on a node resulting in, for example, getPositionX
and getPositionY not working for physics nodes.
This change also makes this overloads shared between box2d
and chipmunk implementations.
2) Fix typo in make-all-linux-project.sh
3) The ENABLE_BOX2D/ENABLE_CHIPMUNK defines were previously
hardcoded in the Makefiles. Now you get chipmunk by default
on both platforms and can enble Box2D by setting USE_BOX2D in
your environment.
Also remove erroneous ~~D*CC_PLATFORM_FILEUTILS_CPP* and
~~D*CC_PLATFORM_IMAGE_CPP* from linux Makefiles. These should
never be defined globally like this.