jvfiel
1
my .cpp
#include "chipmunk.h"
#include "cocos2d\cocos\physics\CCPhysicsHelper.h"
totalFixtureMomentum += cpMomentForCircle(PhysicsHelper::cpfloat2float(fd->mass), PhysicsHelper::cpfloat2float(fd->radius), PhysicsHelper::cpfloat2float(fd->radius), PhysicsHelper::point2cpv(fd->center));
error in my visual studio c++
Error 341 error C3861: 'point2cpv': identifier not found D:\PodsToRiches\Classes\PEShapeCache_X3_0.cpp 131
Yucel
2
Could it be that you are not setting the cocos2d namespace?
Try to add USING_NS_CC; somewhere after the #includes
#include "chipmunk.h"
#include "cocos2d\cocos\physics\CCPhysicsHelper.h"
USING_NS_CC;
or alternativly add cocos2d:: before PhysicsHelpers
cocos2d::PhysicsHelper::cpfloat2float(fd->radius), cocos2d::PPhysicsHelper::point2cpv(fd->center));
jvfiel
3
got it fix I had to manually add the file destination