From c61652b2915951b7c0206e6ff586a95dfd34e4ad Mon Sep 17 00:00:00 2001 From: Scott Vorthmann Date: Sat, 27 Apr 2024 01:08:26 -0700 Subject: [PATCH] Fixed rotation defect in VRMLLoader.js (#355) --- src/loaders/VRMLLoader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loaders/VRMLLoader.js b/src/loaders/VRMLLoader.js index 7b693b91..cb820d64 100644 --- a/src/loaders/VRMLLoader.js +++ b/src/loaders/VRMLLoader.js @@ -719,7 +719,7 @@ class VRMLLoader extends Loader { break case 'rotation': - const axis = new Vector3(fieldValues[0], fieldValues[1], fieldValues[2]) + const axis = new Vector3(fieldValues[0], fieldValues[1], fieldValues[2]).normalize() const angle = fieldValues[3] object.quaternion.setFromAxisAngle(axis, angle) break