Created
March 9, 2020 06:13
-
-
Save makihiro/c4d4adc9840288be3037a3f67dd01f45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addARObjectAt(matrix) { | |
let newFlower = arObject.clone(); | |
newFlower.visible = true; | |
newFlower.matrix = matrix; | |
scene.addNode(newFlower); //sceneに仮想オブジェクトnewFlowerを追加 | |
flowers.push(newFlower); | |
if (flowers.length > MAX_FLOWERS) { | |
let oldFlower = flowers.shift(); | |
scene.removeNode(oldFlower); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment