* Translate the renderable by the specified offset. * @param {number} x - x offset * @param {number} [y=0] - y offset * @param {number} [z=0] - z offset * @returns {Renderable} Reference to this object for method chaining
(x, y = 0, z = 0)
| 753 | * @returns {Renderable} Reference to this object for method chaining |
| 754 | */ |
| 755 | translate(x, y = 0, z = 0) { |
| 756 | this.currentTransform.translate(x, y, z); |
| 757 | this.updateBounds(); |
| 758 | this.isDirty = true; |
| 759 | return this; |
| 760 | } |
| 761 | |
| 762 | /** |
| 763 | * update function (automatically called by melonJS). |
no test coverage detected