Search found 4 matches
- Mon Jan 09, 2017 4:55 pm
- Forum: Libraries and Tools
- Topic: [lib]GestureLib - Gesture library
- Replies: 4
- Views: 9647
Re: [lib]GestureLib - Gesture library
Strange, but test app recognize gestures in iOS port incorrectly. E.g. you do double tap, but it looks like it doesn't stop recognizing this gesture. Problem is reproducible in iphone 5s simulator. Anyway, thx to author. I'll try to fix the problem. But people should be aware of such bahaviour.
- Mon Jun 18, 2012 10:03 pm
- Forum: General
- Topic: Lua rounding and comparation of floats
- Replies: 6
- Views: 4576
Re: Lua rounding and comparation of floats
Thx , to vrld and Inny for useful info. But it should be interesting (i hope not only for me), how you solve such problems?
Now i have one general solution round ( http://en.wikipedia.org/wiki/Rounding#R ... _from_zero ) all numbers before comparation.
Now i have one general solution round ( http://en.wikipedia.org/wiki/Rounding#R ... _from_zero ) all numbers before comparation.
- Mon Jun 18, 2012 11:32 am
- Forum: General
- Topic: Lua rounding and comparation of floats
- Replies: 6
- Views: 4576
Re: Lua rounding and comparation of floats
Assuming there is no error in your calculations, if the point is "out" of vector2, even for a tiny fraction, then I would consider that there is simply no collision. I would act as if the vectors were 2 million units away. No messing around with rounding numbers of any kind. If you need t...
- Mon Jun 18, 2012 8:52 am
- Forum: General
- Topic: Lua rounding and comparation of floats
- Replies: 6
- Views: 4576
Lua rounding and comparation of floats
Hi i have question about lua and game development. Problem that lua round's values and when i compare this rounded values they a minimally lower or greater than they should be. E.g. I have to 2 vectors and i want find point of their crossing (if such exists). I find point of crossing between 2 lines...