From d765068fca979efece01bf124141d4df56fca9ef Mon Sep 17 00:00:00 2001 From: Benoit Bolsee Date: Tue, 8 Dec 2009 08:58:24 +0000 Subject: BGE: add hitUV property to mouse focus sensor to return UV coordinates under mouse pointer. Useful for texture painting. More details in PyDoc. --- source/gameengine/PyDoc/GameTypes.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/gameengine/PyDoc') 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 """ -- cgit v1.2.3