diff options
author | rcoh <rcoh@mit.edu> | 2011-02-13 18:14:01 -0500 |
---|---|---|
committer | rcoh <rcoh@mit.edu> | 2011-02-13 18:14:01 -0500 |
commit | 9f61ad1981febe1be8631c0ee24d8febd83db714 (patch) | |
tree | e45b046be9739e08f2c795a843a85feeb33b04b4 /behaviors/Circle.py | |
parent | 938a4e8b26d79b3f1935e03bde319c6d1d42e2cd (diff) |
Added TimeSwitch to switch between behaviors at set time intervals
Diffstat (limited to 'behaviors/Circle.py')
-rw-r--r-- | behaviors/Circle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/behaviors/Circle.py b/behaviors/Circle.py index 24d71f1..f3e103b 100644 --- a/behaviors/Circle.py +++ b/behaviors/Circle.py @@ -15,7 +15,7 @@ class Circle(Behavior): data[self['Id']+'Radius'] = self['Radius'] rad = data[self['Id']+'Radius'] cond = '>=' if self['Outside'] else '<=' - circleStr = 'math.sqrt(({x}-'+str(xLoc)+')**2+(({y}-'+str(yLoc)+')**2))'+cond+str(rad) + circleStr = 'math.sqrt(({x}-'+str(xLoc)+')**2+(({y}-'+str(yLoc)+')**2)*2)'+cond+str(rad) if self['Combine']: data['Location'] += ',' + circleStr else: |