From 79dbf3ed50c70107164d0473bd7479ee680d6e70 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Wed, 15 Jan 2014 14:59:40 +0100 Subject: [PATCH 1/1] different entity integration approach --- src/world/Entity.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; } } -- 2.39.2