A tool for pointing in the scene. The distance from the pointer to the intersecting object is displayed. The following command creates a LaserPointer object:
Command |
Description |
laser_pointer.LaserPointer(displayDistance=True) |
displayDistance: When True, displays text with distance information. |
The following methods are available on the LaserPointer object:
Method |
Description |
<LaserPointer>.shoot() |
Draws a ray from the laser pointer to the closest intersecting object. |
<LaserPointer>.remove() |
Removes the laser pointer. |
<LaserPointer>.setUpdateFunction(updateFunction) |
Sets the update function that gets called every frame. The update function calls methods on the tool based on the state of input devices. |