I don’t understand why generateTexture works on my floor graphics but not on the circle. I tried searching the documentation but I can’t find any examples.
floor = this.add.graphics();
disc = this.add.circle(200, 200, 80, 0x6666ff);
floor.fillStyle(0x00ff00, 1);
floor.fillRect(0, 700, 1024, 70);
floor.generateTexture('bottom', 1024, 50);
disc.generateTexture('plinko', 200, 200);
plinko = this.physics.add.image(100, 300, 'plinko');
plinko.setBounce(0.2);
plinko.setColliderWorldBounds(true);
platform = this.physics.add.image(400, 400, 'bottom');
platform.setImmovable(true);
platform.body.allowGravity = false;