diff options
| author | David Doan <daviddoan@Davids-MacBook-Pro-193.local> | 2023-12-13 03:59:19 -0500 |
|---|---|---|
| committer | David Doan <daviddoan@Davids-MacBook-Pro-193.local> | 2023-12-13 03:59:19 -0500 |
| commit | 8f3662d06a015f9b6e21b43bdd5f22765b12323a (patch) | |
| tree | 39c0fea1596e9be3d0d472f18f27e450f2015f6f /src/utils | |
| parent | eaea332f31d8f14caf2f4675779241ad30655fc3 (diff) | |
| parent | 8a59716630868da2b051b7c5f907c13f2324ae25 (diff) | |
camera movement
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/sceneparser.cpp | 4 | ||||
| -rw-r--r-- | src/utils/sceneparser.h | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/utils/sceneparser.cpp b/src/utils/sceneparser.cpp index e2015cd..7db16b0 100644 --- a/src/utils/sceneparser.cpp +++ b/src/utils/sceneparser.cpp @@ -94,9 +94,7 @@ void initTree(SceneNode* currentNode, std::vector<RenderShapeData> *shapes, std: .translation4d = currentTranslation4d, .inverseCTM = glm::inverse(currentCTM), .inverseTranslation4d = -currentTranslation4d, - // .position = glm::vec4(0.f, 0.f, 0.f, 1.f), - // .velocity = glm::vec4(0.f, 0.f, 0.f, 0.f), - // .mass = unitMass, + .velocity = primitive->velocity, }; shapes->push_back(rsd); // } diff --git a/src/utils/sceneparser.h b/src/utils/sceneparser.h index 3ab93a8..96803c9 100644 --- a/src/utils/sceneparser.h +++ b/src/utils/sceneparser.h @@ -12,9 +12,7 @@ struct RenderShapeData { glm::vec4 translation4d; // appended to the right of the ctm (for 4d translation) glm::mat4 inverseCTM; glm::vec4 inverseTranslation4d; // appended to the right of the inverse ctm (for 4d translation) - glm::vec4 position; glm::vec4 velocity; - float mass; }; // Struct which contains all the data needed to render a scene |
