Blender Git Commit Log

Git Commits -> Revision 52b7c15

Revision 52b7c15 by Dalai Felinto (master)
June 5, 2009, 00:51 (GMT)
getScreenPosition, Ray and Vect fixes:

- fix for [#18867] getScreenRay error
... the Vector wasn't been added to KX_Camera origin. Therefore the Ray was always casted to the wrong coordinate when camera wasn't in [0,0,0] (where is obviously was in my tests :)

- making the input parameter compatible with Blender/BGE window coordinate system (Top-Bottom).
... that will break scripts done in 2.49. Since this feature was added only in 2.49 that fix is OK. (and the fix is ridiculous.

Note:
the input parameter is normalized. That means it runs from 0.0 to 1.0. Some users found it confusing, but it allows to make a game compatible with multiple desktop resolutions.a

Commit Details:

Full Hash: 52b7c157a0c0d0bd1836be3149c683abf8bd1743
SVN Revision: 20641
Parent Commit: 8154de7
Lines Changed: +8, -3

1 Modified Path:

/source/gameengine/Ketsji/KX_Camera.cpp (+8, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021