michael117s
10-21-2015, 06:10 AM
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!!:)
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!!:)