[Bf-committers] Modulus (ie %) expression controller in BGE :: little help+review+commit
Dalai Felinto
dfelinto at gmail.com
Thu Mar 5 20:57:41 CET 2009
ok, a good night of sleep + some googling later:I should use fmod instead of
modf :)
I updated the patch and now it's working for int and floats.
I still need someone to commit it though.
http://projects.blender.org/tracker/?func=detail&atid=127&aid=18368&group_id=9
Cheers,
Dalai
http://blenderecia.orgfree.com
2009/3/5 Dalai Felinto <dfelinto at gmail.com>
> Hello,
> I sent a simple patch to the tracker and would like some review + little
> help.
>
> http://projects.blender.org/tracker/?func=detail&atid=127&aid=18368&group_id=9
>
> The idea of this patch is to enable modulus operations in BGE Expressions
> Controller.
>
> The only problem I had is to deal with float numbers.
> C++ doesn't support % operations with floats out of the box.
> And I couldn't make the alternative (modf) to work here.
>
> Other than that it's working 100% for the main scenario I can see it being
> used (int % int).
>
> Can anyone review/"fix"/commit that?
> Thanks & Cheers,
> Dalai
>
> http://blenderecia.orgfree.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-committers/attachments/20090305/e6611f07/attachment.htm
More information about the Bf-committers
mailing list