A laser is fixed to a green object G.
It can hit a red object R and then by script
the color of G will become that of R.
I dont know yet how to move the functions
into onSpawn of the laser, because if i use 200 or more
of these lasers, the simulation will become really slow.
I thought if it is inside of onSpawn then the basic object
will be accessible much quicker, as the adress of it
will not change, so this has to be done just once at the
beginning of the scene.
Maybe someone can help?