Projects > cpp > Issues > Bug #2055

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

CCPhysicsSprite was overriding only some of the getPosition methods

Bug #2055 [Closed]
dumganhar 2013-04-15 15:04 . Updated almost 12 years ago

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.

dumganhar 2013-04-15 19:29
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:2c8bc0a68c012e3798da0a467aca4904a388481b.

Atom PDF

Status:Closed
Start date:2013-04-15
Priority:Normal
Due date:
Assignee:dumganhar
% Done:

100%

Category:linux
Target version:cocos2d-2.1rc0-x-2.1.3