I am currently working on a project in JSBin and attempting to incorporate the THREE TransformControls class. Due to constraints, I am unable to share my full code, but my JavaScript is contained within
<script type="text/javascript"></script>
HTML tags. All imports are managed by <script src=""> </script>
HTML tags. Despite trying different source URLs for the TransformControls class, I have been unsuccessful.
The module has been imported using:
<script src="https://threejs.org/examples/js/controls/TransformControls.js"></script>
but upon creating a new TransformControls object, I consistently encounter a "Script error. (line 0)" message.
Below is a snippet of my TransformControls code:
var tC = new THREE.TransformControls(camera, renderer.domElement); // this line triggers the error
var cC = new THREE.OrbitControls(camera, renderer.domElement); // camera controls functioning properly
tC.addEventListener( 'mousemove', render );
Where might I be going wrong?
Disclaimer: My knowledge of JavaScript and THREE is extremely limited