Actually use the same node positions internally and externally.

This commit is contained in:
2018-02-15 16:07:13 +01:00
parent ea4b5e486a
commit e4336b6757
3 changed files with 60 additions and 51 deletions

View File

@@ -16,8 +16,8 @@ ActivityAnimation::ActivityAnimation(const vector<pair<DType, pair<size_t, size_
delta.reserve(bufferLength);
for (auto &entry : interactions) {
auto *aPos = &aPositions[entry.second.first];
auto *bPos = &bPositions[entry.second.second];
auto *aPos = &aPositions[3 * entry.second.first];
auto *bPos = &bPositions[3 * entry.second.second];
for (auto i : Range(3)) {
startingPos.emplace_back(aPos[i]);