Use a different Entity::Move override in MovementComponent
This commit is contained in:
parent
6e76cc0175
commit
17610b1c82
|
@ -43,7 +43,7 @@ void simpleengine::MovementComponent::Move(const float& delta_time, const float&
|
||||||
velocity.y *= max_velocity / abs;
|
velocity.y *= max_velocity / abs;
|
||||||
}
|
}
|
||||||
|
|
||||||
owning_entity.Move(velocity * delta_time);
|
owning_entity.Move(delta_time, velocity);
|
||||||
}
|
}
|
||||||
|
|
||||||
void simpleengine::MovementComponent::Update(const float& delta_time) {
|
void simpleengine::MovementComponent::Update(const float& delta_time) {
|
||||||
|
|
Loading…
Reference in New Issue