View Single Post
  #12  
Old 11-28-2013, 02:55 AM
Frank Verberne Frank Verberne is offline
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 148
Quote:
Originally Posted by maya View Post
uh ok it's working. but, I wanted the text to appear when the avatar is for example 1 meter far from the radiation source. this is supposed to be a dangerous area and the message is there to warn the avatar that this is an affected area with radiation. so, he is not supposed to get close from it
Simply change
Code:
sensor = vizproximity.Sensor( vizproximity.CircleArea(0.1),source=sphere)
to:
Code:
sensor = vizproximity.Sensor( vizproximity.CircleArea(1),source=sphere)
Now, the warning should appear whenever you approach the center of the sphere within 1 meter. If you want the warning area to be 1 meter surrounding the outside of the sphere, simply add the radius of the sphere to the number you pass to vizproximity.CircleArea().
Reply With Quote