From 724d4e7e69ef4fd6c4594914abb55cb8a081bcb2 Mon Sep 17 00:00:00 2001 From: PlatinumSkink Date: Wed, 14 Oct 2015 18:53:45 +0200 Subject: [PATCH] If stuck to pad, do not come into contact with other things. --- src/game/Game/BallSystem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/Game/BallSystem.cpp b/src/game/Game/BallSystem.cpp index 68c38f0..cb1f671 100644 --- a/src/game/Game/BallSystem.cpp +++ b/src/game/Game/BallSystem.cpp @@ -266,6 +266,10 @@ bool dd::Systems::BallSystem::Contact(const Events::Contact &event) return false; } + if (ballComponent->Waiting || ballComponent->Sticky) { + return false; + } + auto ballTransform = m_World->GetComponent(ballEntity); glm::vec2 ballVelocity = glm::vec2(ballTransform->Velocity.x, ballTransform->Velocity.y);