aboutsummaryrefslogtreecommitdiff
path: root/behaviors/RiseFall.py
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-01-28 15:19:21 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-01-28 15:19:21 -0500
commitef1abfa913498e02a4ece3be4be45d2f03e47d05 (patch)
treeca9e7fb9819e59872f7f6a73c032b40a0804517c /behaviors/RiseFall.py
parenta7d6577e55ebd665ad9e4f45183836f11b3c6fd4 (diff)
Lots of stuff INCOMPLETE
Diffstat (limited to 'behaviors/RiseFall.py')
-rw-r--r--behaviors/RiseFall.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/behaviors/RiseFall.py b/behaviors/RiseFall.py
index 109cd10..eea2283 100644
--- a/behaviors/RiseFall.py
+++ b/behaviors/RiseFall.py
@@ -29,7 +29,13 @@ class RiseFall(Behavior):
data['Right'] = data['Location'][0]+data['Width']/2.
currentTime = timeOps.time()
deltaTime = currentTime-data['StartTime']
+ #if data['Oscillate'] == True:
data['Height'] = data['MaxHeight']*math.sin(deltaTime/data['Period']*(math.pi*2))
+ #else:
+ # data['Height'] = data['MaxHeight']
+ #if (currentTime-data['StartTime']) > data['Period']:
+ # del data['StartTime']
+
data['Location'] = "{x}>"+str(data['Left']) + ", " +\
"{x}<"+str(data['Right'])+", {y}<" + str(data['Bottom']) + ",\
{y}>"+str(data['Bottom']-data['Height'])