From 86975539564cfb6c3b3089650b7d580d708c9d58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Gon=C3=A7alves=20=28Ulukyn=29?= Date: Wed, 9 Feb 2022 21:38:23 +0000 Subject: [PATCH] Resolve "Add rotz roty and dist reflect lua to 3DCamera of a scene" --- .../src/interface_v3/interface_3d_scene.h | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/ryzom/client/src/interface_v3/interface_3d_scene.h b/ryzom/client/src/interface_v3/interface_3d_scene.h index 7db17ae85..4117af403 100644 --- a/ryzom/client/src/interface_v3/interface_3d_scene.h +++ b/ryzom/client/src/interface_v3/interface_3d_scene.h @@ -403,6 +403,15 @@ public: float getTgtY() const { return _Target.y; } float getTgtZ() const { return _Target.z; } + float getRotZ() const { return _Rot.z; } + void setRotZ(float f) { _Rot.z = f; } + + float getRotY() const { return _Rot.y; } + void setRotY(float f) { _Rot.y = f; } + + float getDist() const { return _Dist; } + void setDist(float f) { _Dist = f; } + REFLECT_EXPORT_START(CInterface3DCamera, CInterfaceElement) REFLECT_FLOAT ("posx", getPosX, setPosX); REFLECT_FLOAT ("posy", getPosY, setPosY); @@ -410,19 +419,13 @@ public: REFLECT_FLOAT ("tgtx", getTgtX, setTgtX); REFLECT_FLOAT ("tgty", getTgtY, setTgtY); REFLECT_FLOAT ("tgtz", getTgtZ, setTgtZ); + REFLECT_FLOAT ("rotz", getRotZ, setRotZ); + REFLECT_FLOAT ("roty", getRotY, setRotY); + REFLECT_FLOAT ("dist", getDist, setDist); REFLECT_FLOAT ("fov", getFOV, setFOV); REFLECT_FLOAT ("roll", getRoll, setRoll); REFLECT_EXPORT_END - float getRotZ() const { return _Rot.z; } - void setRotZ(float f) { _Rot.z = f; } - - float getRotY() const { return _Rot.y; } - void setRotY(float f) { _Rot.y = f; } - - float getDist() const { return _Dist; } - void setDist(float f) { _Dist = f; } - void reset(); // Reset user interaction protected: