mirror of
https://github.com/lubosz/overte.git
synced 2025-04-13 08:02:07 +02:00
25 lines
620 B
JavaScript
25 lines
620 B
JavaScript
|
|
ModelBase = function() {
|
|
this.length = 0.2;
|
|
}
|
|
|
|
ModelBase.prototype.setVisible = function(visible) {
|
|
this.visible = visible;
|
|
}
|
|
|
|
ModelBase.prototype.setLength = function(length) {
|
|
this.length = length;
|
|
}
|
|
|
|
ModelBase.prototype.setTransform = function(transform) {
|
|
this.rotation = transform.rotation;
|
|
this.position = transform.position;
|
|
this.tipVector = Vec3.multiplyQbyV(this.rotation, { x: 0, y: this.length, z: 0 });
|
|
this.tipPosition = Vec3.sum(this.position, this.tipVector);
|
|
}
|
|
|
|
ModelBase.prototype.setTipColors = function(color1, color2) {
|
|
}
|
|
|
|
ModelBase.prototype.onCleanup = function() {
|
|
}
|