//
// PhysicsJoints2.hpp
// day01
//
// Created by MAC on 16/7/14.
//
//
#ifndef PhysicsJoints2_hpp
#define PhysicsJoints2_hpp
#include <stdio.h>
#include <iostream>
using namespace std;
#include "cocos2d.h"
using namespace cocos2d;
#include "ui/CocosGUI.h"
using namespace cocos2d::ui;
//const int DRAG_BODYS_TAG =1;
class PhysicsJoints2:public Layer{
public:
static Scene* createScene();
bool init();
CREATE_FUNC(PhysicsJoints2);
void onEnter();
void onExit();
PhysicsWorld* getPhysicsWorld();
Sprite* makeBall(Vec2 point, float radius, PhysicsMaterial material = PHYSICSSHAPE_MATERIAL_DEFAULT);
private:
Node * edgeShape;
Size visiableSize;
Vec2 center;
PhysicsBody* _touchBody;
DrawNode * draw;
};