Login  Register

Re: Rotate a colorcube and stop when a value is 1

Posted by gouessej on Dec 12, 2014; 9:26am
URL: https://forum.jogamp.org/Rotate-a-colorcube-and-stop-when-a-value-is-1-tp4033740p4033754.html

Instead of calling AlphadrehAlpha.pause() when stop == 1, just check whether stop == 1 and the rotation of the color cube is set to a value that shows the red side.
Julien Gouesse | Personal blog | Website