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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user