I am having a cube in my scene when my laser beam from my stylus is hitting the cube at the time of hit when I am pressing any of the button in my stylus the laser length becomes constant and the laser length is not changing to the original length when I drag the stylus away from the cube by keeps on pressing the stylus button. It is changing to its original or default length only on releasing the button(buttonup()). but why the laser length is not increasing even it is not hitting anything the only thing I have done is I am holding the button on the stylus.
You are encountering one of what we call the ZPointer’s Drag Policies. Please refer to the documentation for more information.