Search found 4 matches

by feodosian
Mon Jan 09, 2017 4:55 pm
Forum: Libraries and Tools
Topic: [lib]GestureLib - Gesture library
Replies: 4
Views: 8752

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.
by feodosian
Mon Jun 18, 2012 10:03 pm
Forum: General
Topic: Lua rounding and comparation of floats
Replies: 6
Views: 4345

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.
by feodosian
Mon Jun 18, 2012 11:32 am
Forum: General
Topic: Lua rounding and comparation of floats
Replies: 6
Views: 4345

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...
by feodosian
Mon Jun 18, 2012 8:52 am
Forum: General
Topic: Lua rounding and comparation of floats
Replies: 6
Views: 4345

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...