angular-threejs / angular-three

Angular Renderer for THREE.js
MIT License
184 stars 23 forks source link

Possible naming issue with light helpers, or I've just done something stupid #10

Closed LBR474 closed 1 year ago

LBR474 commented 1 year ago

I can't get any of the lighthelpers to work. I've been able to get box-, arrow-, grid- and axes-helpers all to work fine, but not any of the light-helpers. My guess is that it's because the lights are compound words, eg, spot light helper, whereas, for example, axes is just one word, and axes helper compiles fine with .

When I type: <ngt-spotlight-helper />, the code compiles, but no helper appears. However if I type <ngx-spot-light-helper />, then this error appears:

Cannot read properties of undefined (reading "matrixWorld") at new SpotLightHelper.

So thought I'd report that to see if it's a simple fix. Thanks.

LBR474 commented 1 year ago

I found a workaround using threeJS code in the class, so will close this issue.