# Why class TransformNode do not has addChild like class AbstractMesh

**URL:** <https://forum.babylonjs.com/t/why-class-transformnode-do-not-has-addchild-like-class-abstractmesh/28141>\
**Category:** Questions\
**Tags:** node\
**Created:** [March 4, 2022, 1:49am UTC](https://forum.babylonjs.com/t/why-class-transformnode-do-not-has-addchild-like-class-abstractmesh/28141 "2022-03-04T01:49:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aze](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/aze/32/23050_2.png) [@Aze](https://forum.babylonjs.com/u/Aze)\
**Post date:** [March 4, 2022, 1:49am UTC](https://forum.babylonjs.com/t/why-class-transformnode-do-not-has-addchild-like-class-abstractmesh/28141/1 "2022-03-04T01:49:56Z")

</div>

Thanks for your answer.

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [March 4, 2022, 12:07pm UTC](https://forum.babylonjs.com/t/why-class-transformnode-do-not-has-addchild-like-class-abstractmesh/28141/2 "2022-03-04T12:07:38Z")

</div>

Hello! I don’t think there’s a particular reason for that, but I might be wrong so I’ll check with @Deltakosh and @sebavan 🙂 However, all that addChild does is calling setParent, which both AbstractMesh and TransformNode have, so there’s no missing functionality 🙂

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [March 4, 2022, 2:55pm UTC](https://forum.babylonjs.com/t/why-class-transformnode-do-not-has-addchild-like-class-abstractmesh/28141/3 "2022-03-04T14:55:27Z")

</div>

No special reason, @carolhmj feel free to move it in TransformNode 🙂

---

<div class="post-metadata">

**Author:** ![Aze](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/aze/32/23050_2.png) [@Aze](https://forum.babylonjs.com/u/Aze)\
**Post date:** [March 9, 2022, 11:08am UTC](https://forum.babylonjs.com/t/why-class-transformnode-do-not-has-addchild-like-class-abstractmesh/28141/4 "2022-03-09T11:08:56Z")

</div>

Thanks for your reply 😃,we can use setParent.If we support addChild,i can organise my code by another way.  
ps：My English is not very good, please forgive me.

---

<div class="post-metadata">

**Author:** ![Aze](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/aze/32/23050_2.png) [@Aze](https://forum.babylonjs.com/u/Aze)\
**Post date:** [March 9, 2022, 11:09am UTC](https://forum.babylonjs.com/t/why-class-transformnode-do-not-has-addchild-like-class-abstractmesh/28141/5 "2022-03-09T11:09:26Z")

</div>

Thanks for your reply 😃.
