Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

Solved-How to control the speed of a rotation

$
0
0

Actually I've realised you probably don't want to be multiplying by ofGetElapsedTimef() .. that number is going to keep getting bigger as your application runs meaning rotation is going to get faster and faster. Just taking that out should give you a steady enough rotation as long as your frame rate is fairly constant.

If you wanted a reliable rotation rate per sec you could incorporate ofGetLastFrameTime into the equation.


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>