Home | Trees | Index | Help |
---|
Package pygsear :: Module Path :: Class AccelerationPath |
|
Path
--+ |VelocityPath
--+ | AccelerationPath
Method Summary | |
---|---|
__init__(self,
startLocation,
vx,
vy,
ax,
ay,
gx,
gy,
duration)
| |
Use velocity and acceleration info to move sprite, and return position. | |
put path back to original state | |
set_acceleration(self,
ax,
ay)
| |
set_gravity(self,
gx,
gy)
| |
Inherited from VelocityPath | |
| |
Return the direction from the previous location to the current location. | |
| |
| |
Inherited from Path | |
| |
Return position along Path | |
return x component of position | |
return y component of position | |
true if path position is on main window | |
stop moving along path | |
Path will raise StopIteration after self.duration seconds | |
Set position and update positionOld | |
resume moving along path |
Method Details |
---|
next(self, t=None)Use velocity and acceleration info to move sprite, and return position.
|
reset(self)put path back to original state
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Sat Dec 9 14:11:18 2006 | http://epydoc.sf.net |