#1
|
|||
|
|||
Proximity Help
Hi all!
I am having trouble with the proximity script. I have two objects,a shelf and a CD. I would like to place the CD on the shelf in a particular position on the shelf. I have placed a sensor on the shelf and made the CD a target using: viz.proximity.Target(CD) When I pick up the CD and move it within the bounding sensor that surrounds the shelf, I would like the CD to automatically move to a set position. So far I have used this: def EnterProximity(e): Disc1.setPosition([0,0.9,0]) I expected this to do the job but was unsuccessful. I would greatly appreciate help with this! Thanks!! |
#2
|
|||
|
|||
Are you sure the sensor area is setup correctly and the target is activating the sensor? You can enable debug mode to visualize the sensor area:
Code:
manager.setDebug(viz.ON) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Proximity Sensing Using Kinect | JamesCakes | Vizard | 6 | 06-24-2016 05:52 AM |
How to set the viewpoint as the proximity target in a Vizconnect configuration? | jizh1000 | Vizard | 1 | 06-01-2015 11:18 AM |
Orientation selective (Viewing Vector) Proximity Sensor | lmGehrke | Vizard | 2 | 03-17-2015 12:31 PM |
Proximity Sensor Problem | kmkm | Vizard | 3 | 03-04-2014 11:54 AM |
Phase Space and Proximity Sensors | snovob93 | Vizard | 3 | 06-13-2012 12:32 PM |