MCPcopy Create free account
hub / github.com/crownengine/crown / create

Method create

src/world/scene_graph.cpp:162–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162TransformId 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.

Callers

nothing calls this directly

Calls 2

create_instancesFunction · 0.85
instanceFunction · 0.85

Tested by

no test coverage detected