It’s the modulo operator. It pretty much gives you the remainder of a division operation. The error is my bad since 60 and 24 are ints not floats. Try switching to 60.0f and 24.0f.
It’s the modulo operator. It pretty much gives you the remainder of a division operation. The error is my bad since 60 and 24 are ints not floats. Try switching to 60.0f and 24.0f.