~ubuntu-branches/ubuntu/lucid/blender/lucid

« back to all changes in this revision

Viewing changes to source/gameengine/PyDoc/KX_MouseFocusSensor.py

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2009-08-06 22:32:19 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090806223219-8z4eej1u8levu4pz
Tags: 2.49a+dfsg-0ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/control: Build-depend on python-2.6 rather than python-2.5.
  - debian/misc/*.desktop: Add Spanish translation to .desktop 
    files.
  - debian/pyversions: 2.6.
  - debian/rules: Clean *.o of source/blender/python/api2_2x/
* New upstream release (LP: #382153).
* Refreshed patches:
  - 01_sanitize_sys.patch
  - 02_tmp_in_HOME
  - 10_use_systemwide_ftgl
  - 70_portability_platform_detection
* Removed patches merged upstream:
  - 30_fix_python_syntax_warning
  - 90_ubuntu_ffmpeg_52_changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: KX_MouseFocusSensor.py 15444 2008-07-05 17:05:05Z lukep $
2
 
# Documentation for KX_MouseFocusSensor
3
 
from SCA_MouseSensor import *
4
 
 
5
 
class KX_MouseFocusSensor(SCA_MouseSensor):
6
 
        """
7
 
        The mouse focus sensor detects when the mouse is over the current game object.
8
 
        
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.
11
 
        """
12
 
        
13
 
        def GetRayTarget():
14
 
                """
15
 
                Returns the end point of the sensor ray.
16
 
                
17
 
                @rtype: list [x, y, z]
18
 
                @return: the end point of the sensor ray, in world coordinates.
19
 
                """
20
 
        def GetRaySource():
21
 
                """
22
 
                Returns the start point of the sensor ray.
23
 
                
24
 
                @rtype: list [x, y, z]
25
 
                @return: the start point of the sensor ray, in world coordinates.
26
 
                """