Creating custom Object3D class
问题 I'm new to THREE.js coming from an AS3/Away3D background. I'm trying to create a custom object class that extends THREE.Object3D to add to my scene. CustomObject will encapsulate a lot of behavioural properties and methods. Ideally I'd like to pass each CustomObject it's own data object which will determine how it will look/move/behave. Encapsulating this code will keep my main.js a lot cleaner. My problem is I can't seem to add an instance of the class directly to my scene. I can only add