Modified the pad-and-ball collision code a bit. Hopefully for the better.

This commit is contained in:
PlatinumSkink
2015-09-14 15:39:39 +02:00
parent 1b9da2de1b
commit 8d1ad184a6
3 changed files with 32 additions and 15 deletions
+2 -2
View File
@@ -139,8 +139,8 @@ public:
{
auto topWall = m_World->CreateEntity();
std::shared_ptr<Components::Transform> transform = m_World->AddComponent<Components::Transform>(topWall);
transform->Position = glm::vec3(0.f, 5.f, -10.f);
transform->Scale = glm::vec3(15.f, 0.5f, 1.f);
transform->Position = glm::vec3(0.f, 6.f, -10.f);
transform->Scale = glm::vec3(18.f, 0.5f, 1.f);
std::shared_ptr<Components::Sprite> sprite = m_World->AddComponent<Components::Sprite>(topWall);
sprite->SpriteFile = "Textures/Core/ErrorTexture.png";