From 5ed9cadc63e63b309f792631f6774eee7fa6dd2f Mon Sep 17 00:00:00 2001 From: Garrett Johnson Date: Thu, 28 Dec 2023 23:03:20 +0900 Subject: [PATCH] Improve pivot mesh transform --- example/src/PivotPointMesh.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/example/src/PivotPointMesh.js b/example/src/PivotPointMesh.js index 2f43c1f10..3b6531479 100644 --- a/example/src/PivotPointMesh.js +++ b/example/src/PivotPointMesh.js @@ -16,6 +16,12 @@ export class PivotPointMesh extends Mesh { } + updateMatrixWorld() { + + this.matrixWorld.makeTranslation( this.position ); + + } + dispose() { this.geometry.dispose();