Simple Casino Slot Machine Wheel in Blueprint - Newbie Question

Hi guys,

I have desperately been trying to make a single wheel rotate around to simulate a wheel in a slot machine using Blueprints

The wheel consist of 15 faces (24 degrees per item):
603b6922eaa4b06b046d579d5efbc74e4f4730b9.jpeg

So for each 24 degree a rotate the wheel, the face of the slot machine will change perfectly.

I have tried many different ways of randomizing a number between 0-15 and then calculating the angle of the wheel - eg.

Random number = 3
3 * 24 = 72 degrees

Then set pitch to 72 degree.

That all works! But as soon as I want to generate a new number and move to that position, I get stuck. I have tried using Set Actor Rotation and Set Actor Relative Rotation, but I can’t succeed.
Does any one have an idea for an approach and what function I need?
I want it to animate, so I made a timeline and used a Lerp.

Anyone please help!

1 Like

Have you experimented with a physics approach? You could physically spin the wheel and then when it rests you could use the rotation value to determine what face is showing.

you complicate it as much as possible, and the game itself is not perfect, mb, try something different

When I started playing casino games, there was a whole lot of confusion – almost as confusing as the number of cryptocurrencies we now have in the modern world there is a large selection of such things. While I knew there would be a variety of them, I didn’t count on the effort it would take to find the right online casino. I wasn’t even keen on modern entertainment software, but thanks to reviews on AussieBestCasinos, I came to learn about Microgaming and other game developers. I also learned and started to appreciate such things as end-to-end encryption of user information.
Here’s why I tell every newbie to read their reviews before they select a gambling site. In the professional review, experts will not shy away from calling out a casino if the standards do not meet industry requirements. They talk about casino bonus options, licenses, eCOGRA recognition, all you need to know about online casino deposits and withdrawals, and all the reasons you should or should not play at a site. This information, available in one place, is invaluable for a gambler.
Now, thanks to advanced gambling technology, you know you can play at a mobile casino, iPhone casino, and tablet casino, and that they will all give you mad casino welcome bonus options for enticement. And the game variety gets better each time since you have the pokies – slots – table games such as blackjack, roulette, poker, baccarat, and live dealer options that I always find refreshing. Read reviews and you will be shocked at how much there is to know about the industry.
And I’m sure that this option is cooler than inventing something new.

interesting topic