PhysicsTest update.

This commit is contained in:
James Chen 2013-10-24 17:58:30 +08:00
parent 9c4bc9e8ed
commit b5cac51f97
2 changed files with 9 additions and 4 deletions

View File

@ -722,6 +722,11 @@ void PhysicsDemoJoints::onEnter()
_scene->getPhysicsWorld()->setGravity(Point::ZERO);
}
void PhysicsDemoJoints::onTouchesEnded(const std::vector<Touch*>& touches, Event* event)
{
}
std::string PhysicsDemoJoints::title()

View File

@ -41,9 +41,9 @@ public:
Sprite* makeBox(float x, float y, Size size, PhysicsMaterial material = PhysicsMaterial(1.0f, 1.0f, 1.0f));
Sprite* makeTriangle(float x, float y, Size size, PhysicsMaterial material = PhysicsMaterial(1.0f, 1.0f, 1.0f));
void onTouchesBegan(const std::vector<Touch*>& touches, Event* event) override;
void onTouchesMoved(const std::vector<Touch*>& touches, Event* event) override;
void onTouchesEnded(const std::vector<Touch*>& touches, Event* event) override;
void onTouchesBegan(const std::vector<Touch*>& touches, Event* event);
void onTouchesMoved(const std::vector<Touch*>& touches, Event* event);
void onTouchesEnded(const std::vector<Touch*>& touches, Event* event);
protected:
Texture2D* _spriteTexture; // weak ref
@ -110,7 +110,7 @@ public:
public:
void onEnter() override;
std::string title() override;
void onTouchesEnded(const std::vector<Touch*>& touches, Event* event) override;
void onTouchesEnded(const std::vector<Touch*>& touches, Event* event);
};
#endif