mkkellogg / TrailRendererJS

3D object trail renderer for Three.js
169 stars 26 forks source link

halfwidth needs let not const #15

Open NikLever opened 3 months ago

NikLever commented 3 months ago
initializeLocalHeadGeometry (localHeadWidth, localHeadGeometry) {
        this.localHeadGeometry = [];
        if (!localHeadGeometry) {
            const halfWidth = localHeadWidth || 1.0;
            halfWidth = halfWidth / 2.0;

halfWidth should be declared as let to enable it to be divided by 2.

mkkellogg commented 2 months ago

Thanks for noticing this! I've pushed a change that should fix it.