From ac571ece5a4170eb13f5741139371dccba7a7698 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 13 Feb 2019 14:12:32 -0500 Subject: [PATCH] Fixing comment. --- src/extensions/scratch3_gdx_for/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/extensions/scratch3_gdx_for/index.js b/src/extensions/scratch3_gdx_for/index.js index 51917241e..b5091517a 100644 --- a/src/extensions/scratch3_gdx_for/index.js +++ b/src/extensions/scratch3_gdx_for/index.js @@ -775,9 +775,8 @@ class Scratch3GdxForBlocks { } getTilt (args) { - // When the peripheral is not connected, the acceleration magnitude - // is 0 instead of ~9.8, which ends up registering a tilt value; so - // we need to return 0 here to prevent returning a tilt value. + // Tilt values are calculated using acceleration due to gravity, + // so we need to return 0 when the peripheral is not connected. if (!this._peripheral.isConnected()) { return 0; }