Hi all,
Sorry if this is a silly question, but is it possible to move an actor to some position after it has been added with appendScene?
This works:
const spawner = new Sup.Actor("Spawner");
spawner.setPosition(SomePosition);
Sup.appendScene("Prefabs/Patterns/World1/Pattern1", spawner);
But this doesn't (it appears at the origin instead of at SomePosition)
const pattern = Sup.appendScene("Prefabs/Patterns/World1/Pattern1")[0];
pattern.setPosition(SomePosition);
My "Pattern1" scene looks like this, with a single actor at the root:
- Pattern
- Ground
...
- ...
I don't know the desired position of the actor ("Pattern") until after I create it, so the first solution doesn't really work for me.
Any help is appreciated. Thanks.
(Edited the title to reflect that this is not strictly a appendScene issue)