How do i disable chipmunk to enable box2d?

i’m trying to test the box2d test case from cpp tests and i found this on ccConfig.h

/** Use physics integration API. */
#ifndef CC_USE_PHYSICS
#define CC_USE_PHYSICS 1
#endif

#if (CC_USE_PHYSICS)
/** Use chipmunk physics 2d engine. */
#ifndef CC_ENABLE_CHIPMUNK_INTEGRATION
#define CC_ENABLE_CHIPMUNK_INTEGRATION 1
#endif

/** or use box2d physics 2d engine. */
#ifndef CC_ENABLE_BOX2D_INTEGRATION
#define CC_ENABLE_BOX2D_INTEGRATION 0
#endif
#endif // CC_USE_PHYSICS

i swtiched between them but im still geting a message that are both enabled.

i ve forgot to mention, is v 3.17.2.

anyway i found a preprocessor definition configured in properties of project libcocos2d in visual studio defining CC_ENABLE_CHIPMUNK_INTEGRATION to 1

now the tests are working.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.