| 160 | } |
| 161 | |
| 162 | TransformId SceneGraph::create(UnitId unit, const Vector3 &pos, const Quaternion &rot, const Vector3 &scale) |
| 163 | { |
| 164 | TransformDesc td; |
| 165 | td.position = pos; |
| 166 | td.rotation = rot; |
| 167 | td.scale = scale; |
| 168 | u32 unit_lookup = 0; |
| 169 | u32 unit_parents = UINT32_MAX; |
| 170 | create_instances(&td, 1, &unit, &unit_lookup, &unit_parents); |
| 171 | return instance(unit); |
| 172 | } |
| 173 | |
| 174 | /// Moves the node data from index @a src to index @a dst, while preserving |
| 175 | /// internal links between nodes. |
nothing calls this directly
no test coverage detected