I've made a physics body in PhysicsEditor and imported it in my game. What I would like to do is change the mass of the body. The only problem is, that it's a multi-shape body, and when I call
physicsObject.physicsBody.mass = value;
'Cannot set the mass of a multi-shape body directly. Set the individual shape masses instead.'
And I would do just that, except I don't know how. I would iterate the shapes, but I have no access to cpBody from CCPhysicsBody. Any clues on how to proceed? I'm using Cocos2D 3.2.1 without SpriteBuilder.