Hello I’m trying to create some container entities to store sub-entities. Right now it is giving me
launch.js:8025 TypeError: this.tileContainer.setLocalPosition is not a function
// initialize code called once per entity
Board.prototype.initialize = function() {
this.tileContainer = pc.Entity("Tiles");
this.tileContainer.setLocalPosition(0, 0, -1);
this.entity.addChild(this.tileContainer);
// omitted for clarity
};
Is it not possible to create new entities in initialize function? or did I messed something else?