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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2009-12-08 11:58:24 +0300
committerBenoit Bolsee <benoit.bolsee@online.be>2009-12-08 11:58:24 +0300
commitd765068fca979efece01bf124141d4df56fca9ef (patch)
treed479a85fcfbee95432738a2f1c9348328d37cb24 /source/gameengine/PyDoc
parent2318886f7029cef4c0890d3ae9c56b86cc49d7ad (diff)
BGE: add hitUV property to mouse focus sensor to return UV coordinates under mouse pointer. Useful for texture painting. More details in PyDoc.
Diffstat (limited to 'source/gameengine/PyDoc')
-rw-r--r--source/gameengine/PyDoc/GameTypes.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/gameengine/PyDoc/GameTypes.py b/source/gameengine/PyDoc/GameTypes.py
index 27b4685ca14..ba22dbd4e8f 100644
--- a/source/gameengine/PyDoc/GameTypes.py
+++ b/source/gameengine/PyDoc/GameTypes.py
@@ -2414,6 +2414,10 @@ class KX_MouseFocusSensor(SCA_MouseSensor):
@type hitPosition: list (vector of 3 floats)
@ivar hitNormal: the worldspace normal from the face at point of intersection.
@type hitNormal: list (normalized vector of 3 floats)
+ @ivar hitUV: the UV coordinates at the point of intersection.
+ If the object has no UV mapping, it returns [0,0].
+ The UV coordinates are not normalized, they can be < 0 or > 1 depending on the UV mapping.
+ @type hitUV: list (vector of 2 floats)
@ivar usePulseFocus: When enabled, moving the mouse over a different object generates a pulse. (only used when the 'Mouse Over Any' sensor option is set)
@type usePulseFocus: bool
"""