[Solved] Cocos2d-x 3.5 with PEShapeCache_X3_0.cpp

I encountered a problem with my physics body parser class when upgrading from Cocos2d-x v.3.3 to Cocos2d-x v.3.5.

If you’re using PhysicsEditor with Cocos2d-x 3.5 you may encounter a problem with an import statement in the physics body parser class PEShapeCache_X3_0.cpp. I noticed that the chipmunk subfolder was removed from the physics folder in the 3.5 release of Cocos2d-x, and the CCPhysicsHelper_chipmunk.h file was renamed to CCPhysicsHelper.h. My commented-out and new include statements are below:

// #include “physics/chipmunk/CCPhysicsHelper_chipmunk.h”
#include “physics/CCPhysicsHelper.h”

Reference:


Tutorial referencing the parser class:
http://jslim.net/blog/2014/10/10/cocos2d-x-v3-accurate-physics-body-shape-with-physicseditor/
related post: Cosos2dx 3.2, works on ios but compile error in android