Code: Select all
mBody = cpSpaceAddBody(space, cpBodyNew(1.0f, cpMomentForBox(1.0f, 30.0f, 30.0f)));
cpbodysetpos(mBody, cpv(0, 0));
mShape = cpspaceaddshape(space, cpboxshapenew(mBody, 30.0f, 30.0f));
cpshapesetelasticity(mShape, 0.0f);
cpshapesetfriction(mShape, 0.8f);
The strange thing is that the same functions in an another class work well.
ehm, little ashamed for this, somehow i turn the function name low case. I didn't see it and I was thinking about a cmakelist error. sorry