Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

Issue With Setting Gravity On Gravity Generators

$
0
0
I have been trying to set a precise number for the gravity on a gravity generator but it always seems to be a little off at the end. For instance if I do gravityGen.SetValueFloat(30f) the actual value it stores in the generator is 0.305...

As a result of this it displays 31 in the info of the gravity generator instead of 30. I tried the same with a higher number and the difference was even worse, 94 became 96. Is this a bug?

Viewing all articles
Browse latest Browse all 903

Trending Articles