| 169 | } |
| 170 | |
| 171 | void EntityNode::transformChanged() |
| 172 | { |
| 173 | Node::transformChanged(); |
| 174 | TargetableNode::onTransformationChanged(); |
| 175 | |
| 176 | // Broadcast transformChanged to all attached entities so they can update |
| 177 | // their position |
| 178 | for (auto [node, offset]: _attachedEnts) |
| 179 | node->transformChanged(); |
| 180 | } |
| 181 | |
| 182 | void EntityNode::onEntityClassChanged() |
| 183 | { |