Chapter 10: Creating Weaponry: Using Mouse Picking and Intervals
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.
We used getSurfacePoint() to find the exact location of the collision.
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.
A Sequence is a collection of Intervals that will ...
With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, interactive tutorials, and more.