![]() |
#4
|
|||
|
|||
Proximity Sensor Event
So I was trying to incorporate the previous code but I'm stuck. does my sensor and target have to be in the same manager? I'm not really sure what I'm doing wrong but the function never executes.
![]() Code:
sensor = vizproximity.Sensor(vizproximity.Sphere(15,center = [72,-.57,2]), source = avatar1) manager.addSensor(sensor) Avatar2Target = vizproximity.Target(avatar2) Avatar2Manager.addTarget(Avatar2Target) def HealthLoss(e): if e.target == Avatar2Target: print "Sensor Entered" Avatar2Manager.onEnter(sensor1, HealthLoss) |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unexpected Avatar lookAt() behavior when using yield statements | chris2307 | Vizard | 2 | 12-17-2013 02:58 AM |
Avatar & Motion Capture Interface | Angie | Vizard | 1 | 08-05-2010 06:17 PM |
Collision of an avatar with a quad | Frank Verberne | Vizard | 8 | 06-04-2008 09:44 AM |
Looking through the eyes of an avatar | Frank Verberne | Vizard | 2 | 04-01-2008 05:52 AM |
How to make avatar's eyes to blink when speaking | michelcm3 | Vizard | 12 | 01-15-2008 08:48 AM |