![]() |
|
|
|
#1
|
|||
|
|||
|
If you have the bounding box the enclosed area and the position of the wheelchair, then you can use the following code to check whether the wheelchair is inside the enclosed area:
Code:
# bb is bounding box of enclosed area # p is [x,y,z] position of wheelchair if (bb.xmin <= p[0] <= bb.xmax) and (bb.ymin <= p[1] <= bb.ymax) and (bb.zmin <= p[2] <= bb.zmax): print 'Wheelchair inside' else: print 'Wheelchair outside' |
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| retrieve Object names | Geoffrey | Vizard | 11 | 12-11-2009 05:26 AM |
| why is time faster in my virtual world? | billjarrold | Vizard | 1 | 11-24-2009 06:33 PM |
| Gps input for viewpoint location? | realvision | Vizard | 3 | 03-19-2008 01:37 PM |
| Object rotating around world axis, not own axis | tacbob | Vizard | 1 | 02-15-2007 10:12 AM |
| rotate to object | jargon | Vizard | 1 | 08-08-2005 01:20 PM |