From: Daniel Karbach Date: Wed, 15 Jan 2014 13:59:40 +0000 (+0100) Subject: different entity integration approach X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=79dbf3ed50c70107164d0473bd7479ee680d6e70;p=gworm.git different entity integration approach --- diff --git a/src/world/Entity.cpp b/src/world/Entity.cpp index d1cf34d..06a27c3 100644 --- a/src/world/Entity.cpp +++ b/src/world/Entity.cpp @@ -13,9 +13,13 @@ Entity::Entity() void Entity::Update(float dt) { - // euler + // linear + pos += (dt * vel) + (acc * dt * dt / 2.0f); vel += dt * acc; - pos += dt * vel; + + // euler + //vel += dt * acc; + //pos += dt * vel; } }