Pad modifies ball path and ball facing its direction

This commit is contained in:
viktorljung
2015-09-23 15:12:18 +02:00
parent 8ca01ae9c7
commit 03e2078cfb
5 changed files with 35 additions and 15 deletions
+1
View File
@@ -61,6 +61,7 @@ void dd::Systems::PadSystem::UpdateEntity(double dt, EntityID entity, EntityID p
//auto pointlight = m_World->AddComponent<Components::PointLight>(ent);
std::shared_ptr<Components::CircleShape> circleShape = m_World->AddComponent<Components::CircleShape>(ent);
std::shared_ptr<Components::Ball> cball = m_World->AddComponent<Components::Ball>(ent);
cball->Speed = 10.f;
std::shared_ptr<Components::Physics> physics = m_World->AddComponent<Components::Physics>(ent);
physics->Static = false;