This is how I create a goblet (how to collect coins).
BABYLON.SceneLoader.ImportMesh("", "/images/", "award.glb", scene, function (newMeshes, particleSystems, skeletons, animationGroups) {
let award = newMeshes[1]
//Scale the model down
award.scaling.scaleInPlace(0.05)
award.position.y = 0.4
award.position.x = randomInteger(-1, 1)
award.position.z = 76
award.animations.push(standartFrameRateAnim()) // Animation due to which the cup goes towards the character.
let awardAnim = scene.beginAnimation(award, 0, 9, true)
})
What is the best way for me to generate a lot of coins without being signed?