1
# $Id: KX_MouseFocusSensor.py 15444 2008-07-05 17:05:05Z lukep $
2
# Documentation for KX_MouseFocusSensor
3
from SCA_MouseSensor import *
5
class KX_MouseFocusSensor(SCA_MouseSensor):
7
The mouse focus sensor detects when the mouse is over the current game object.
9
The mouse focus sensor works by transforming the mouse coordinates from 2d device
10
space to 3d space then raycasting away from the camera.
15
Returns the end point of the sensor ray.
17
@rtype: list [x, y, z]
18
@return: the end point of the sensor ray, in world coordinates.
22
Returns the start point of the sensor ray.
24
@rtype: list [x, y, z]
25
@return: the start point of the sensor ray, in world coordinates.