Quantcast
Channel: Answers for "Getting the same 'rounded' value of a Vector3?"
Viewing all articles
Browse latest Browse all 6

Answer by senad

$
0
0

You could use an epsilon value to check if your float is inside a given range. For example:


float espilon = .05f;
if ( Math.abs(figure.y - .7f) < epsilon ) figure.y = .7f;

Viewing all articles
Browse latest Browse all 6

Trending Articles



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