distinguishing between plane and geom
3 posts • Page 1 of 1
distinguishing between plane and geom
I'm working on homing gliding bomb that uses lasers to find target. But the lasers trigger as soon as they hit the ground plane. Is there any way to ignore this and trigger some script only when laser hits some geometry?
Phundamentalist
-
davidz40 - Posts: 438
- Joined: Sun Sep 06, 2009 10:30 am
Re: distinguishing between plane and geom
This ignores planes and only activates the code if it's not a plane.
Or you can directly call any geometry type so it only gets activated if it hits circles or boxes etc... You got the idea.
- Code: Select all
e.geom + "" == "plane" ? { } : { laser code }
Or you can directly call any geometry type so it only gets activated if it hits circles or boxes etc... You got the idea.
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 14 guests