Parents
Entities can have parents and children.
- To set a parent, call
engine.setParent(childId, parentId, true|false)
- the last argument is forkeepWorldSpaceTransform
. - To get the parent id of an entity, call
const result = engine.getParent(entityId)
.