blob: 9e0d523725b0d357e96a93fb13635f2f6cc4fa65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Documentation for KX_MouseFocusSensor
from SCA_MouseSensor import *
class KX_MouseFocusSensor(SCA_MouseSensor):
"""
The mouse focus sensor detects when the mouse is over the current game object.
The mouse focus sensor works by transforming the mouse coordinates from 2d device
space to 3d space then raycasting away from the camera.
"""
def GetRayTarget():
"""
Returns the end point of the sensor ray.
@rtype: list [x, y, z]
@return: the end point of the sensor ray, in world coordinates.
"""
def GetRaySource():
"""
Returns the start point of the sensor ray.
@rtype: list [x, y, z]
@return: the start point of the sensor ray, in world coordinates.
"""
|