Projects > cpp > Issues > Refactor #2873

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

Create Issue on Github

Remove _camera from cocos2d::Node

Refactor #2873 [Closed]
ricardo 2013-10-01 19:06 . Updated almost 3 years ago

The Camera object should be removed from Node.

Instead, if we need that behavior, we should create the CameraNode and add the CameraNode into the scene.


  • Node code will be easier to maintain, and also to understand!


  • Some transitions depends on the _camera property (I think), so those transitions should be rewritten with the new CameraNode
ricardo 2013-10-01 19:13

Example of the proposed API:

auto camera = Camera::create(....);
this->addChild( camera );

auto sprite = Sprite::create(...);

// Sprite is being added to the camera... all the Camera effects are going to affect the sprite as well
camera->addChild( sprite );
zhangxm 2014-01-09 06:04
  • Target version changed from Candidate to 3.0-rc0
ricardo 2014-01-14 18:02
  • Status changed from New to Resolved


zhangxm 2014-01-26 05:53
  • Description updated (diff)
  • Status changed from Resolved to Closed
  • Assignee set to ricardo
  • Target version changed from 3.0-rc0 to 3.0-beta2

Atom PDF

Start date:2013-10-01
Due date:
% Done:


Target version:3.0-beta2

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