We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
CC_USE_PHYSICS is actually impossible to turn it off
CC_USE_PHYSICS is actually impossible to turn it off
Bug #3517 [Closed]
- Description updated (diff)
Yep, I agree with 1),
But for 2) ,you said
So if I switch off CC_USE_PHYSICS, then Scene will no has update method.
Notice that Node::update
is a virtual function. We override Scene::update
only for physics
. That doesn’t mean that Scene
has no update
method, its parent Node
own it.
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset commit:a4558e33631773554cfa0530172d688647a8c86c.
Status: | Closed | |
---|---|---|
Start date: | 2013-12-26 | |
Priority: | Normal | |
Due date: | ||
Assignee: | walzer@cocos2d-x.org | |
% Done: | 100% |
|
Category: | all | |
Target version: | 3.0-beta |
in ccConfig.h,
in source code, e.g., Scene.cpp
As the result, no matter I define CC_USE_PHYSICS or not, ccConfig.h will define it more me AUTOMATICALLY, then apply in all cpp code.
And the worse:
So if I switch off CC_USE_PHYSICS, then Scene will no has update method.
How these code be reviewed and merged?