Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/esp/scene/ObjectControls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aclegg3 This is a magic number (or rather vector). May want to make it a global constant somewhere.

return object;
}

Expand Down