diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2012-01-11 11:27:39 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2012-01-11 11:27:39 +0400 |
commit | 782f0b63829a2c257a6e2942c49882f7fe04c33c (patch) | |
tree | b7d421c7d4560167b8f71b4fb2d2fd2ad2d59daf /source/gameengine/Ketsji/KX_CameraActuator.h | |
parent | 0effb45d58b75d96f8bc1be74affc43e99fe2a92 (diff) |
bge camera actuator: -X and -Y axis
The camera actuator only allows to look the object from its front face.
Given that Blender takes -Y as the default forward orientation, the current
functionality doesn't let a camera to track an actor from behind.
This patch allows for -X and -Y axis tracking. This way a camera over the
shoulders of a character is possible (without resorting to rotate the
mesh/armature original orientation.
- patch reviewed by Campbell Barton, thanks
Diffstat (limited to 'source/gameengine/Ketsji/KX_CameraActuator.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_CameraActuator.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/gameengine/Ketsji/KX_CameraActuator.h b/source/gameengine/Ketsji/KX_CameraActuator.h index a6344ae380a..1cae676fe3f 100644 --- a/source/gameengine/Ketsji/KX_CameraActuator.h +++ b/source/gameengine/Ketsji/KX_CameraActuator.h @@ -70,8 +70,8 @@ private : /** max (float), */ float m_maxHeight; - /** xy toggle (pick one): true == x, false == y */ - bool m_x; + /** axis the camera tries to get behind: +x/+y/-x/-y */ + short m_axis; /** damping (float), */ float m_damping; @@ -97,7 +97,7 @@ private : float hght, float minhght, float maxhght, - bool xytog, + short axis, float damping ); |