O'Reilly logo

Panda3D 1.6 Game Engine by Dave Mathews

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10: Creating Weaponry: Using Mouse Picking and Intervals

Mouse picking

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.

Intervals

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required