From 44a1cd2e7a3ece2de9fe71df165eb8f5877208c1 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Thu, 6 Feb 2025 12:44:19 +0100 Subject: [PATCH] Document the order in which transformations are applied --- src/scene/scenegraphnode.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scene/scenegraphnode.cpp b/src/scene/scenegraphnode.cpp index cd5bfaa3c1..845264b3f6 100644 --- a/src/scene/scenegraphnode.cpp +++ b/src/scene/scenegraphnode.cpp @@ -269,7 +269,9 @@ namespace { // This describes a set of transformations that are applied to this scene graph // node and all of its children. There are only three possible values - // corresponding to a 'Translation', a 'Rotation', and a 'Scale' + // corresponding to a 'Translation', a 'Rotation', and a 'Scale'. The combined + // transformation will be computed by first applying the 'Scale', followed by the + // 'Rotation', and then the 'Translation'. std::optional transform; // This value is a multiplication factor for the interaction sphere that