BearBearBear Dev Diary – #3

Yesterday I sorted out:

  • calculating the turn of each update
  • normalising the turn of each update
  • applying the turn to the reels
  • add a ‘Do Once’ to the user input

this was all pretty easy to sort out what slowed everything down was quaternions. When applying and calculating the turn I was working with quaternions which work very differently to how I was expecting them to work. I spent awhile trying to get them to work before figuring out that quaternions are very annoying to work with and you can just use rotator variables instead which are a lot easy to use. After sorting that out I managed to get my reels to spin. It’s not perfect but I’ll mess around with the speed, time and look of the rotation once I get the actual reel models into the project. Next I need to work on calculating the result of the spin and money.

I’m finding that when I am working with basic C++ coding I can pick it up and work with it pretty easily but when needing to do coding related to Unreal Engine it takes a bit more time to figure out how to get things working.