Rectangle shape now has the size of the rigidbody, not scale

This commit is contained in:
viktorljung
2015-10-06 13:31:23 +02:00
parent 1d42e107de
commit 43e0a5b699
6 changed files with 533 additions and 8 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ void dd::Systems::PadSystem::Initialize()
ctransform->Position = glm::vec3(0.f, -3.5f, -10.f);
ctransform->Scale = glm::vec3(1.0f, 1.0f, 1.f);
auto rectangleShape = m_World->AddComponent<Components::RectangleShape>(ent);
rectangleShape->Dimensions = glm::vec3(1.f, 0.5f);
rectangleShape->Dimensions = glm::vec2(1.f, 0.5f);
auto physics = m_World->AddComponent<Components::Physics>(ent);
physics->CollisionType = CollisionType::Type::Dynamic;
physics->Category = CollisionLayer::Type::Pad;