Page 1 of 1

Reset touch while limit = 0

Posted: 25 Feb 2015, 17:34
by lerou
Hi,

this is not a big one... but it cost me a moment to figure out what's going on, so I'll annoy the forum in return.

Create a new empty scene

Create a touch translation node, followed by a rectangle. Set the touch limits:
active: true
MinX = 0
MaxX = 0
MinY = 0
MaxY = 10

Move the rectangle up a bit

Set MaxY = 0

Hit reset on the touch node

Increase MaxY

You'll see the rectangle move up. Seems like the reset was ignored while the y-limits were both at 0. Probably ignored as y-movement is more or less disabled with such values. However if you're setting the limits from some other node and they become 0 during a reset or so, this might confuse you the way it did me ;)

cheers,
rou