* Capture the world-space position of the given container into the * module-level `_depthOffset*` triple. Called once per sort by `sort` / * `sortNow` before walking the children, so `_sortDepth` can translate * each child's LOCAL `pos.x/y/z` into world space without paying for * an `ancestor.ge
(container)
| 75 | * @ignore |
| 76 | */ |
| 77 | function captureDepthOffset(container) { |
| 78 | const abs = container.getAbsolutePosition(); |
| 79 | _depthOffsetX = abs.x; |
| 80 | _depthOffsetY = abs.y; |
| 81 | _depthOffsetZ = abs.z; |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * Register a child's physics body with the root world container when the |
no test coverage detected