Question number

Answer

1

We used the setFromLens() method. This method takes a camera node, an X-coordinate, and a Y-coordinate. The intended coordinates are the mouse coordinates from base.mouseWatcher.getMouse. The method places the CollisionRay at the position of the camera and points it through the mouse coordinates out into space.

2

We used getSurfacePoint() to find the exact location of the collision.

Question number

Answer

1

An Interval has a defined duration, or start and stop values. An Interval also can be controlled in a similar fashion to animations. Neither of these is true for tasks.

2

A Sequence is a collection of Intervals that will be played one after another. A Parallel is a collection of Intervals that will all be played at the same time. Only Intervals may be put in either.

3

Func and Wait are used for creating scripts with Sequences and Parallels. The Func Interval simply calls a function or method. Wait does nothing, for a set amount of time.

4

isPlaying() and isStopped(). isPlaying() will return True if the Interval is paused; isStopped will return False in that case.

5

We use the getDuration() method.

6

We use the getT() method.