BABYLON.SceneLoader.ImportMesh("", "model/", "weixin.babylon", scene, function (newMeshes, particleSystems, skeletons) {
var alpha = 0;
scene.registerBeforeRender( function () {
for (i = 0; i < 60; i++) {
newMeshes[i].position = new BABYLON.Vector3(newMeshes[i].position.x + 10 *
Math.sin(alpha),
newMeshes[i].position.y + 0,
newMeshes[i].position.z + 10 * Math.cos(alpha));
}
alpha += 0.01;
});
});
here is my code why it show "Cannot read property 'position' of undefined"