diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-06-17 16:13:44 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-06-17 16:13:44 +0400 |
commit | 8f30414c29bc62447bc6664d9395778cae027133 (patch) | |
tree | 6a1ccab5068526835aa434d9d49a274b06398c7a | |
parent | a21caf32ccb3379cae93ec8062daf0b258014027 (diff) |
Fix T40620: BGE Python - Ray sensor has wrong axis constants
-rw-r--r-- | source/gameengine/Ketsji/KX_RaySensor.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source/gameengine/Ketsji/KX_RaySensor.h b/source/gameengine/Ketsji/KX_RaySensor.h index 09e99fe0013..4604863a233 100644 --- a/source/gameengine/Ketsji/KX_RaySensor.h +++ b/source/gameengine/Ketsji/KX_RaySensor.h @@ -83,13 +83,14 @@ public: } //Python Interface + // odd order, see: SENS_RAY_X_AXIS enum RayAxis { - KX_RAY_AXIS_POS_X = 0, - KX_RAY_AXIS_POS_Y, - KX_RAY_AXIS_POS_Z, - KX_RAY_AXIS_NEG_X, - KX_RAY_AXIS_NEG_Y, - KX_RAY_AXIS_NEG_Z + KX_RAY_AXIS_POS_X = 1, + KX_RAY_AXIS_POS_Y = 0, + KX_RAY_AXIS_POS_Z = 2, + KX_RAY_AXIS_NEG_X = 3, + KX_RAY_AXIS_NEG_Y = 4, + KX_RAY_AXIS_NEG_Z = 5, }; #ifdef WITH_PYTHON |