how in script to detect if the object was moved within y axis?, i have a gameobject that should be moved up and down
asked Feb 13 '12 at 04:58 AM
In general, store the last position in a variable and check if the distance from the current position is greater than an epsilon. In your case, just do it with the y component.
answered Feb 13 '12 at 05:02 AM