Squid does not move until space is pressed. Experimenting with scroll. This shouldn't really be committed, but Visual Studio.

This commit is contained in:
PlatinumSkink
2015-10-07 17:09:55 +02:00
parent b7696b8776
commit 3814c25931
11 changed files with 109 additions and 10 deletions
+7 -1
View File
@@ -194,7 +194,13 @@ void dd::Systems::PhysicsSystem::Update(double dt)
void dd::Systems::PhysicsSystem::UpdateEntity(double dt, EntityID entity, EntityID parent)
{
auto transform = m_World->GetComponent<Components::Transform>(entity);
if (transform != nullptr) {
if (transform->Sticky == true) {
return;
}
transform->Position.y -= 1.0f * dt;
}
}
bool dd::Systems::PhysicsSystem::OnPause(const dd::Events::Pause &event)