2019-07-25 22:22:32 +02:00
|
|
|
/**
|
2019-10-06 21:11:18 +02:00
|
|
|
* R3.Controls.D3
|
2019-07-25 22:22:32 +02:00
|
|
|
* @constructor
|
|
|
|
*/
|
2019-10-15 22:21:34 +02:00
|
|
|
R3.Controls.D3 = function(
|
|
|
|
inherited
|
|
|
|
) {
|
2019-07-25 22:22:32 +02:00
|
|
|
|
2019-10-15 22:21:34 +02:00
|
|
|
__INHERIT_ONLY__
|
|
|
|
|
|
|
|
this.linkedComponents.camera = R3.D3.Camera;
|
|
|
|
|
|
|
|
R3.Controls.call(
|
|
|
|
this,
|
|
|
|
true
|
|
|
|
);
|
2019-07-25 22:22:32 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
R3.Controls.D3.prototype = Object.create(R3.Controls.prototype);
|
|
|
|
R3.Controls.D3.prototype.constructor = R3.Controls.D3;
|
|
|
|
|
|
|
|
R3.Controls.D3.prototype.updateInstance = function(property) {
|
|
|
|
|
|
|
|
if (property === 'camera') {
|
|
|
|
console.warn('update camera instance update');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-10-15 22:21:34 +02:00
|
|
|
if (property === 'enabled') {
|
|
|
|
this.instance.enabled = this.enabled;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-07-25 22:22:32 +02:00
|
|
|
R3.Controls.prototype.updateInstance.call(this, property);
|
|
|
|
|
|
|
|
};
|