Import a 3D Model and automatically assign and export animations
TypeScript
Have line width on skeleton display always be same width regardless of zoom level
Scott Petrovic3e438a8fd264
diff --git a/src/lib/CustomSkeletonHelper.ts b/src/lib/CustomSkeletonHelper.tsindex da4cb0a..02f0d33 100644--- a/src/lib/CustomSkeletonHelper.ts+++ b/src/lib/CustomSkeletonHelper.ts@@ -36,7 +36,7 @@ class CustomSkeletonHelper extends Line2 {const material = new LineMaterial({linewidth: options.linewidth || 0.005,- worldUnits: true,+ worldUnits: false, // Set to false to make the line width constant in screen spacevertexColors: true,dashed: options.dashed || false, // this doesn't seem to do anythingalphaToCoverage: true,diff --git a/src/script.ts b/src/script.tsindex ead91d8..c81b53c 100644--- a/src/script.ts+++ b/src/script.ts@@ -105,7 +105,7 @@ export class Bootstrap {this.scene.remove(this.skeleton_helper)}- this.skeleton_helper = new CustomSkeletonHelper(new_skeleton.bones[0], { linewidth: 0.02, color: 0x4e7d58, jointColor: 0x00ff00 })+ this.skeleton_helper = new CustomSkeletonHelper(new_skeleton.bones[0], { linewidth: 3, color: 0x4e7d58, jointColor: 0x00ff00 })this.skeleton_helper.name = helper_namethis.scene.add(this.skeleton_helper)}