Skip to content

Parents

Entities can have parents and children.

  • To set a parent, call engine.setParent(childId, parentId, true|false) - the last argument is for keepWorldSpaceTransform.
  • To get the parent id of an entity, call const result = engine.getParent(entityId).