MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / update

Method update

src/Scene/CarModel.cpp:91–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90
91void CarModel::update() {
92 RotationMatrix = glm::toMat4(orientation);
93 TranslationMatrix = glm::translate(glm::mat4(1.0), position);
94 ModelMatrix = TranslationMatrix * RotationMatrix;
95}
96
97void CarModel::destroy() {
98 if(!Config::get().vulkanRender){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected