How to create a Laser Light Detector?

Post questions about the webshop. NEVER post credit card information, license keys or any other personal information.

How to create a Laser Light Detector?

Postby aldo681001 » Fri Jun 03, 2016 1:46 am

Hi

How do I create a (non-destructive) laser light detector?

thank you
aldo681001
 
Posts: 1
Joined: Thu Jun 02, 2016 11:47 pm

Re: How to create a Laser Light Detector?

Postby grantypoo » Fri Jun 03, 2016 6:04 pm

A little information might go a long way in helping... describe the scene you are creating and what you want to have happen.

But without knowing anything about what you're doing, here is my suggestion.

You can put in your lasers scripting code to change the color of whatever it hits. You can look at my scene here where I do it with 5 or 6 different lasers. I right clicked the laser, went into scripting and put this code into the "OnLaserHit" section. It makes the object the laser strikes take on the color of the laser.

(e)=>{e.geom.color = e.this.color}

That's one way to visually detect that a laser hit something.

Rating: rated 6.1
Filesize: 227.03 kB
Comments: 4
Ratings: 3
download
grantypoo
 
Posts: 36
Joined: Sat Apr 30, 2016 1:46 am

Re: How to create a Laser Light Detector?

Postby icrls984 » Sun Jun 19, 2016 2:38 am

Like grantypoos said, this is lacking information. :?
With that being said, there are actually two ways to detect if a laser is hitting a geometry: in the laser onLaserHit, and in the geometry onHitByLaser. These events trigger if a laser hits a geometry, and if a geometry is hit by a laser, in that order. Depending on what you are using to detect the laser, you might have to use one, or maybe both.
.
User avatar
icrls984
 
Posts: 80
Joined: Thu Jun 13, 2013 6:33 am


Return to Webshop FAQ and support

Who is online

Users browsing this forum: No registered users and 7 guests