# ProjectileInterval

from direct.interval.ProjectileInterval import ProjectileInterval

ProjectileInterval class: moves a nodepath through the trajectory of a projectile under the influence of gravity

## Inheritance:

ProjectileInterval: Interval
Interval: DirectObject
DirectObject:

## Methods of ProjectileInterval:

__calcPos
__calcTrajectory
__init__
__initialize
privInitialize
privInstant
privStep
testTrajectory

## Methods of Interval:

__init__
__playTask
__removeTask
__repr__
__spawnTask
clearToInitial
finish
getDoneEvent
getDuration
getLoop
getName
getOpenEnded
getPlayRate
getState
getT
intervalDone
isPaused
isPlaying
isStopped
loop
pause
popupControls
privDoEvent
privFinalize
privInitialize
privInstant
privInterrupt
privPostEvent
privReverseFinalize
privReverseInitialize
privReverseInstant
privStep
resume
resumeUntil
setDoneEvent
setLoop
setPlayRate
setT
setupPlay
setupResume
start
stepPlay

## Methods of DirectObject:

__init__
_addTask
_clearTask
accept
acceptOnce
addTask
classTree
detectLeaks
doMethodLater
getAllAccepting
ignore
ignoreAll
isAccepting
isIgnoring
removeAllTasks
removeTask

__calcPos def __calcPos(self, t) Undocumented function.

__calcTrajectory def __calcTrajectory(self, startPos=None, endPos=None, duration=None, startVel=None, endZ=None, wayPoint=None, timeToWayPoint=None, gravityMult=None) Undocumented function.

__init__ def __init__(self, node, startPos=None, endPos=None, duration=None, startVel=None, endZ=None, wayPoint=None, timeToWayPoint=None, gravityMult=None, name=None, collNode=None) You may specify several different sets of input parameters. (If startPos is not provided, it will be obtained from the node's position at the time that the interval is first started. Note that in this case you must provide a duration of some kind.) go from startPos to endPos in duration seconds startPos, endPos, duration given a starting velocity, go for a specific time period startPos, startVel, duration given a starting velocity, go until you hit a given Z plane startPos, startVel, endZ pass through wayPoint at time 'timeToWayPoint'. Go until you hit a given Z plane startPos, wayPoint, timeToWayPoint, endZ You may alter gravity by providing a multiplier in 'gravityMult'. '2.' will make gravity twice as strong, '.5' half as strong. '-1.' will reverse gravity If collNode is not None, it should be an empty CollisionNode which will be filled with an appropriate CollisionParabola when the interval starts. This CollisionParabola will be set to match the interval's parabola, and its t1, t2 values will be updated automatically as the interval plays. It will *not* be automatically removed from the node when the interval finishes.

__initialize def __initialize(self) Undocumented function.

privInitialize def privInitialize(self, t) Undocumented function.

privInstant def privInstant(self) Undocumented function.

privStep def privStep(self, t) Undocumented function.

testTrajectory def testTrajectory(self) Undocumented function.

__init__ def __init__(self, name, duration, openEnded=1) Undocumented function.

__playTask def __playTask(self, task) Undocumented function.

__removeTask def __removeTask(self) Undocumented function.

__repr__ def __repr__(self, indent=0) Undocumented function.

__spawnTask def __spawnTask(self) Undocumented function.

clearToInitial def clearToInitial(self) Undocumented function.

finish def finish(self) Undocumented function.

getDoneEvent def getDoneEvent(self) Undocumented function.

getDuration def getDuration(self) Undocumented function.

getLoop def getLoop(self) Undocumented function.

getName def getName(self) Undocumented function.

getOpenEnded def getOpenEnded(self) Undocumented function.

getPlayRate def getPlayRate(self) Returns the play rate as set by the last call to start(), loop(), or setPlayRate().

getState def getState(self) Undocumented function.

getT def getT(self) Undocumented function.

intervalDone def intervalDone(self) Undocumented function.

isPaused def isPaused(self) Undocumented function.

isPlaying def isPlaying(self) Undocumented function.

isStopped def isStopped(self) Undocumented function.

loop def loop(self, startT=0.0, endT=-1.0, playRate=1.0) Undocumented function.

pause def pause(self) Undocumented function.

popupControls def popupControls(self, tl=None) Popup control panel for interval.

privDoEvent def privDoEvent(self, t, event) Undocumented function.

privFinalize def privFinalize(self) Undocumented function.

privInitialize def privInitialize(self, t) Undocumented function.

privInstant def privInstant(self) Undocumented function.

privInterrupt def privInterrupt(self) Undocumented function.

privPostEvent def privPostEvent(self) Undocumented function.

privReverseFinalize def privReverseFinalize(self) Undocumented function.

privReverseInitialize def privReverseInitialize(self, t) Undocumented function.

privReverseInstant def privReverseInstant(self) Undocumented function.

privStep def privStep(self, t) Undocumented function.

resume def resume(self, startT=None) Undocumented function.

resumeUntil def resumeUntil(self, endT) Undocumented function.

setDoneEvent def setDoneEvent(self, event) Undocumented function.

setLoop def setLoop(self, loop=1) Undocumented function.

setPlayRate def setPlayRate(self, playRate) Changes the play rate of the interval. If the interval is already started, this changes its speed on-the-fly. Note that since playRate is a parameter to start() and loop(), the next call to start() or loop() will reset this parameter.

setT def setT(self, t) Undocumented function.

setupPlay def setupPlay(self, startT, endT, playRate, doLoop) Undocumented function.

setupResume def setupResume(self) Undocumented function.

start def start(self, startT=0.0, endT=-1.0, playRate=1.0) Undocumented function.

stepPlay def stepPlay(self) Undocumented function.

__init__ def __init__(self) Undocumented function.

_addTask def _addTask(self, task) Undocumented function.

_clearTask def _clearTask(self, task) Undocumented function.

accept def accept(self, event, method, extraArgs=[]) Undocumented function.

acceptOnce def acceptOnce(self, event, method, extraArgs=[]) Undocumented function.

addTask def addTask(self, *args, **kwargs) Undocumented function.

classTree def classTree(self) Undocumented function.

detectLeaks def detectLeaks(self) Undocumented function.

doMethodLater def doMethodLater(self, *args, **kwargs) Undocumented function.

getAllAccepting def getAllAccepting(self) Undocumented function.

ignore def ignore(self, event) Undocumented function.

ignoreAll def ignoreAll(self) Undocumented function.

isAccepting def isAccepting(self, event) Undocumented function.

isIgnoring def isIgnoring(self, event) Undocumented function.

removeAllTasks def removeAllTasks(self) Undocumented function.

removeTask def removeTask(self, taskOrName) Undocumented function.