0
개방 주석의 모양으로 물리학 몸체를 만드는 방법. 그것은 내 응용 프로그램이 몸개방 주석의 모양으로 물리학 몸체를 만드는 방법
이 내 코드입니다 물건을 수집해야하는 등의 에지 기반의 몸과 위쪽에서 열려 있어야하지만, 그건 내 실수였다
CGMutablePathRef path = CGPathCreateMutable();
CGPathMoveToPoint(path, NULL, 0, 0);
CGPathMoveToPoint(path, NULL, 0, 60);
CGPathMoveToPoint(path, NULL, 60, 60);
CGPathMoveToPoint(path, NULL, 60, 0);
node.physicsBody = [SKPhysicsBody bodyWithEdgeChainFromPath:path];