If laser is hitting...
Posted: Sat Feb 27, 2010 11:18 pm
Could anyone explain me how to change a variable when a laser is hitting and change it again when it stops hitting an object?
For example I've got a box and a laser when the laser hits the box scene.my.var1 = 0 and when it stops hitting the box scene.my.var1 = 1.
It could be used as a kind of movement sensor or tilting sensor just like here:
For example I've got a box and a laser when the laser hits the box scene.my.var1 = 0 and when it stops hitting the box scene.my.var1 = 1.
It could be used as a kind of movement sensor or tilting sensor just like here: