Rotation issue with frameCount - how could i solve this with modulo?

Hey i need your help with the rotation.

here the part of the code which relates to my question:

float rotation = map(sin(radians(frameCount)), 1, -1, 45, -45);


1 Like

ah so easy! many thanks!

1 Like

Hello @srt,

What is the rotation issue with frameCount?
What is the solution presented doing?
What did the solution presented solve?

@srt You need to understand this.