Closed ayush-lal closed 3 years ago
Hey @ayush-lal,
this.rotationSpeed
controls how fast the wheel is spinning, so you could just comment out this line:
// Decrease rotation (simulate drag):
this.rotationSpeed += (this.rotationResistance * delta) * this.rotationDirection;
Thanks heaps! Do you know how I could go about triggering the Roulette Wheel to spin automatically as soon as the page has loaded?
Try this:
wheel.init({
settings,
rotationResistance: 0, // 1. Ensure the spin won't slow down over time.
});
wheel.setRotationSpeed(30); // 2. Spin the wheel, speed 30.
Is there a way to trigger the roulette wheel to spin automatically and to never stop?
Im guessing this function needs to be called but struggling to figure it all out...