problem with laser script
4 posts • Page 1 of 1
problem with laser script
hi all.
i have a problem.
is it possible to adjust the fadedist of a laser with the oncollide of another laser?
ok, i know that its possible. my problem is.
i have one laser(1) that points to the ground. so it collides with the ground.
i have another laser(2) with a fadedist of 0
so i will make the laser(2) with the fadedist of 0 have a fadedist of 1 if the first laser(1) loses the kontakt to the ground.
hope i wrote understandable
best regards bluebravo / silversmart
i have a problem.
is it possible to adjust the fadedist of a laser with the oncollide of another laser?
ok, i know that its possible. my problem is.
i have one laser(1) that points to the ground. so it collides with the ground.
i have another laser(2) with a fadedist of 0
so i will make the laser(2) with the fadedist of 0 have a fadedist of 1 if the first laser(1) loses the kontakt to the ground.
hope i wrote understandable
best regards bluebravo / silversmart
- silversmart
- Posts: 27
- Joined: Tue Jul 05, 2011 7:48 pm
Re: problem with laser script
laser(1) oncollide
laser(2) fadedistance
now when laser(1) collides, laser(2) gets longer
- Code: Select all
scene.my.fadedistance:=scene.my.fadedistance+1
laser(2) fadedistance
- Code: Select all
{scene.my.fadedistance}
now when laser(1) collides, laser(2) gets longer
Basically, there are only 10 types of people in the world. Those who know binary, and those who don't.
Light travels faster than sound. That's why some people appear bright until they open their mouths.
Light travels faster than sound. That's why some people appear bright until they open their mouths.
-

monstertje3 - Posts: 343
- Joined: Sat Sep 05, 2009 4:29 pm
- Location: N-H, NL
Re: problem with laser script
thank you monstertje3,
thats what i know about.
but my problem is, is there a script, if laser(1) loses the contact to the ground then laser(2) gets a longer fadedist.
i try to explain...
i put laser(1) on a car before the front wheel (wheel ---- wheel ---- laser(1)) with pointing to the ground. if the laser(1) lose the ground contact laser(2) gets a fadedist of 1.0000
the whole time laser(1) hits the ground laser(2) should have a fadedist of 0.100
its so exhausting to explain problems if you are from germany... hope my english is not soooo bad
best regards bluebravo
thats what i know about.
but my problem is, is there a script, if laser(1) loses the contact to the ground then laser(2) gets a longer fadedist.
i try to explain...
i put laser(1) on a car before the front wheel (wheel ---- wheel ---- laser(1)) with pointing to the ground. if the laser(1) lose the ground contact laser(2) gets a fadedist of 1.0000
the whole time laser(1) hits the ground laser(2) should have a fadedist of 0.100
its so exhausting to explain problems if you are from germany... hope my english is not soooo bad
best regards bluebravo
- silversmart
- Posts: 27
- Joined: Tue Jul 05, 2011 7:48 pm
Re: problem with laser script
maybe this is helpful
http://www.algodoo.com/forum/viewtopic.php?f=13&t=2136#p25942
http://www.algodoo.com/forum/viewtopic.php?f=13&t=2136#p25942

-

KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests



