| 1356 | } |
| 1357 | |
| 1358 | void Actor::OnTransformChanged() |
| 1359 | { |
| 1360 | ASSERT_LOW_LAYER(!_localTransform.IsNanOrInfinity()); |
| 1361 | |
| 1362 | if (_parent) |
| 1363 | { |
| 1364 | _parent->_transform.LocalToWorld(_localTransform, _transform); |
| 1365 | } |
| 1366 | else |
| 1367 | { |
| 1368 | _transform = _localTransform; |
| 1369 | } |
| 1370 | |
| 1371 | for (auto child : Children) |
| 1372 | { |
| 1373 | child->OnTransformChanged(); |
| 1374 | } |
| 1375 | } |
| 1376 | |
| 1377 | void Actor::OnActiveChanged() |
| 1378 | { |
no test coverage detected