From 75dd32cde932de99e564daf8231eaddc9c241adb Mon Sep 17 00:00:00 2001 From: boyu0 Date: Wed, 6 Nov 2013 14:34:27 +0800 Subject: [PATCH] issue #2771: fix physics test compile error --- samples/Cpp/TestCpp/Classes/PhysicsTest/PhysicsTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/Cpp/TestCpp/Classes/PhysicsTest/PhysicsTest.cpp b/samples/Cpp/TestCpp/Classes/PhysicsTest/PhysicsTest.cpp index 88b17e365e..0885218d9a 100644 --- a/samples/Cpp/TestCpp/Classes/PhysicsTest/PhysicsTest.cpp +++ b/samples/Cpp/TestCpp/Classes/PhysicsTest/PhysicsTest.cpp @@ -382,7 +382,7 @@ Sprite* PhysicsDemo::makeTriangle(Point point, Size size, PhysicsMaterial materi bool PhysicsDemo::onTouchBegan(Touch* touch, Event* event) { auto location = touch->getLocation(); - Array* arr = _scene->getPhysicsWorld()->getShapesAtPoint(location); + Array* arr = _scene->getPhysicsWorld()->getShapes(location); PhysicsShape* shape = nullptr; for (Object* obj : *arr) @@ -982,7 +982,7 @@ void PhysicsDemoPump::update(float delta) } } - PhysicsBody* gear = _scene->getPhysicsWorld()->getBodyByTag(1); + PhysicsBody* gear = _scene->getPhysicsWorld()->getBody(1); if (gear != nullptr) {