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 over 3 years ago

Fixed at
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
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

Start date:2013-04-15
Due date:
% Done:


Target version:cocos2d-2.1rc0-x-2.1.3

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.