MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / UpdateTransform

Method UpdateTransform

Source/Objects/object.cpp:429–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429void Object::UpdateTransform() {
430 LOG_ASSERT(!IsNan(rotation_[0]));
431 rotation_mat_ = Mat4FromQuaternion(rotation_);
432 mat4 translation_mat;
433 translation_mat.SetTranslation(translation_);
434 mat4 scale_mat;
435 scale_mat.SetScale(scale_);
436 transform_ = translation_mat * rotation_mat_ * scale_mat;
437}
438
439void Object::SetTranslation(const vec3 &trans) {
440 if (translation_ != trans) {

Callers 11

UpdateTwistBonesMethod · 0.45
InitializeMethod · 0.45
MovedMethod · 0.45
UpdateMethod · 0.45
SetPhysicsTransformMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
ResetMethod · 0.45
CreatePhysicsShapeMethod · 0.45

Calls 4

IsNanFunction · 0.85
Mat4FromQuaternionFunction · 0.85
SetTranslationMethod · 0.45
SetScaleMethod · 0.45

Tested by

no test coverage detected