laser color on geometry collide

About advanced scenes, and the Thyme scripting language used in Algodoo.

laser color on geometry collide

Postby bosiefus » Mon Jun 06, 2011 1:39 am

i was making a scene involving a juicer and i accidentaly came upon a script. i typed it into the laser hit box and every time the laser hit a box or other polygon the laser would become that color. can anyone tell me what script i used because i cant remember what it is.

also what could i use it for?
bosiefus
 
Posts: 5
Joined: Sat Jun 04, 2011 4:58 pm

Re: laser color on geometry collide

Postby Someone Else » Mon Jun 06, 2011 2:36 am

The script you want is this:
Code: Select all
e.laser.color = e.geom.color

When it goes into the onLaserHit or onHitByLaser box, it should look like:
Code: Select all
(e)=>{e.laser.color = e.geom.color}
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 5 guests

cron