mirror of https://github.com/axmolengine/axmol.git
PhysicsTest update.
This commit is contained in:
parent
9c4bc9e8ed
commit
b5cac51f97
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue