File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1
1
var _ = require ( 'underscore' ) ;
2
2
var BlackboxAutogen = require ( './Blackbox.autogen' ) . BlackboxModel ;
3
3
4
+ /**
5
+ * This object is intended as an extension point. It differs from
6
+ * a normal Object3D in that it does not sync back child objects to
7
+ * the models. This allows extensions to build sub-scene graphs that
8
+ * might not be possible/feasible/desirable to sync.
9
+ *
10
+ * To implement an extended object based on this:
11
+ * - Extend this model
12
+ * - Override defaults/serializers as normal for a widget. Remember
13
+ * to call the super methods!
14
+ * - Override initialize method. Call super, and then put any
15
+ * extension code that relies on the THREE object inside
16
+ * a "then" to `initPromise:
17
+ *
18
+ * this.initPromise.then(() => {
19
+ * // Do your stuff here
20
+ * });
21
+ * - If you do not want a basic Object3D as the "root" of your black
22
+ * box, you need to override constructThreeObject[Async].
23
+ */
4
24
var BlackboxModel = BlackboxAutogen . extend ( {
5
25
6
26
defaults : function ( ) {
You can’t perform that action at this time.
0 commit comments