Page 1 of 1

demos bug?

Posted: Fri Feb 08, 2008 5:17 pm
by BoltonBeedz
hi. just trying the demos out for v4.
if my debugging is correct

Code: Select all

float physicsUpdateFrequency = 1 / 60;
should be

Code: Select all

float physicsUpdateFrequency = 1f / 60f;
otherwise it comes out 0
50 quid please

Re: demos bug?

Posted: Fri Feb 08, 2008 9:44 pm
by Zukarakox
it shouldn't, since 1 and 60 are int numbers, they dont need the float typecast.

Re: demos bug?

Posted: Fri Feb 08, 2008 9:59 pm
by Norbo
If they (or at least one of the two) aren't typecast, it does indeed do integer division. While this is a bug, I won't be fixing it immediately with a 0.4.2 because the Space class automatically takes 0 values and sets them to .0166667. :D

Re: demos bug?

Posted: Fri Feb 08, 2008 10:25 pm
by BoltonBeedz
cheeky :wink:

Re: demos bug?

Posted: Sat Feb 09, 2008 9:46 pm
by Zukarakox
well crap, you just mentioned this now ?D: