The problem here is not with the JavaScript, but with the <script>
tag that loads the orbit control JavaScript. At the very top, there is a missing equal-sign (=
) in:
<script src"/controls/OrbitControls.js"></script>
Just change that to:
<script src="/controls/OrbitControls.js"></script>
And it should work just fine
-Chris
Yup working pretty well!