Welcome to mirror list, hosted at ThFree Co, Russian Federation.

KX_MouseFocusSensor.py « PyDoc « gameengine « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 28d584037f837b03aae268e3db68688339980865 (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
26
# $Id$
# 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.
		"""