setParent

Re-parents an entity to a new one. Re-parenting to a descendant is undefined behaviour.

Parameters

i

The instance of the transform component to re-parent

newParent

The instance of the new parent transform