How to move children

I just want to move all children of an entity, like this but actually working
image

Hi @ALUCARD,

Where are you using that code? That will set the entity to that position in a single frame, it will not move/animate it, just reposition it.

And the correct code to move all children is like this using a loop:

this.entity.children.forEach(child =>{
   child.setLocalPosition(0,0,0);
});

Yes, moving them all in a single frame is my goal. And it works so thank u.

1 Like