ios - How to scale physicsBody? -


When I do not scale on a CCSprite scale with a physics-related physics (I have debug draw on) . How do I scale the physics body?

I got this code to change the radius of a circular physical body but it does not work on cocos2d v3. ([Newshap Hackandoff Class: [Chipmunk CarrierShip Class]]) [CPCRCalsepspectSetSatiaas ([new shape shape], [NewSheep] Radius] * scale); // Unprotected size change cpCircleShapeSetOffset ([newshape shape], ccpMult ([newshape offset], scale)); }}

Do you include "chipmunk_unsafe.h"? Functions cpCircleShapeSetRadius and cpCircleShapeSetOffset are defined there are also read comments hopefully it helps :)


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -