(threeObject: any, entity: EntityID)
| 99 | }; |
| 100 | |
| 101 | protected addToScene(threeObject: any, entity: EntityID) |
| 102 | { |
| 103 | let o3d: Object3D = threeObject instanceof Object3D ? threeObject : (<any>threeObject).object3d; |
| 104 | assert(!o3d.userData.owningEntity, "ThreeObject is already added to scene"); |
| 105 | o3d.matrixWorldAutoUpdate = false; |
| 106 | o3d.userData.owningEntity = entity; |
| 107 | this.scene.add(o3d); |
| 108 | } |
| 109 | |
| 110 | protected removeFromScene(threeObject: any) |
| 111 | { |
no test coverage detected