From a776e4feb9671ef45ca356ebf9cf7a0c9e8dc34e Mon Sep 17 00:00:00 2001 From: Alexander Clegg Date: Wed, 1 Jun 2022 12:00:39 -0700 Subject: [PATCH] moveUp and moveDown action apply parent coordinate system +Y translation instead of local "up" (#1763) --- src/esp/scene/ObjectControls.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/esp/scene/ObjectControls.cpp b/src/esp/scene/ObjectControls.cpp index 2b45070e4e..cab57d0720 100644 --- a/src/esp/scene/ObjectControls.cpp +++ b/src/esp/scene/ObjectControls.cpp @@ -28,7 +28,9 @@ SceneNode& moveLeft(SceneNode& object, float distance) { SceneNode& moveUp(SceneNode& object, float distance) { // TODO: this assumes no scale is applied - object.translateLocal(object.transformation().up() * distance); + // Note: this is not a body action and is applied to the sensor rather than + // the Agent, so it will move the sensor in Agent's +Y (up) direction + object.translate(Magnum::Vector3(0, 1, 0) * distance); return object; }