| 50 | } |
| 51 | |
| 52 | void EntityTweener::postTick() |
| 53 | { |
| 54 | for (auto* ent : _entities) |
| 55 | { |
| 56 | if (ent == nullptr || ent->id == EntityId::null) |
| 57 | { |
| 58 | // Sprite was removed, add a dummy position to keep the index aligned. |
| 59 | _postPos.emplace_back(0, 0, 0); |
| 60 | } |
| 61 | else |
| 62 | { |
| 63 | _postPos.emplace_back(ent->position); |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | void EntityTweener::removeEntity(const EntityBase* entity) |
| 69 | { |