How to create a Laser Light Detector?
3 posts • Page 1 of 1
How to create a Laser Light Detector?
Hi
How do I create a (non-destructive) laser light detector?
thank you
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?
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.
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.
- grantypoo
- Posts: 36
- Joined: Sat Apr 30, 2016 1:46 am
Re: How to create a Laser Light Detector?
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.
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.
.
-
icrls984 - Posts: 80
- Joined: Thu Jun 13, 2013 6:33 am
3 posts • Page 1 of 1
Return to Webshop FAQ and support
Who is online
Users browsing this forum: No registered users and 20 guests