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

Method PropagateTransformsDownFast

Source/Objects/group.cpp:244–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244void Group::PropagateTransformsDownFast(bool deep) {
245 for (auto& child : children) {
246 Object* obj = child.direct_ptr;
247 if (obj) {
248 obj->SetTranslationRotationFast(translation_ + (GetRotation() * (scale_ * child.rel_translation)), GetRotation() * child.rel_rotation);
249 if (deep && obj->IsGroupDerived()) {
250 Group* group = static_cast<Group*>(obj);
251 group->PropagateTransformsDownFast(deep);
252 }
253 }
254 }
255}
256
257void Group::PropagateTransformsDown(bool deep) {
258 for (auto& child : children) {

Callers

nothing calls this directly

Calls 3

GetRotationFunction · 0.85
IsGroupDerivedMethod · 0.45

Tested by

no test coverage detected