If stuck to pad, do not come into contact with other things.

This commit is contained in:
PlatinumSkink
2015-10-14 18:53:45 +02:00
parent 55cc1f5b69
commit 724d4e7e69
+4
View File
@@ -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<Components::Transform>(ballEntity);
glm::vec2 ballVelocity = glm::vec2(ballTransform->Velocity.x, ballTransform->Velocity.y);