import { addVector3 } from "./NativeControlTypes.js";
export class TransformControls {
    object = null;
    mode = "translate";
    attach(object) { this.object = object; }
    detach() { this.object = null; }
    setMode(mode) { this.mode = mode; }
    apply(delta) {
        if (!this.object)
            return;
        if (this.mode === "translate")
            addVector3(this.object.position, delta);
        if (this.mode === "rotate")
            addVector3(this.object.rotation, delta);
        if (this.mode === "scale")
            addVector3(this.object.scale, delta);
    }
}
//# sourceMappingURL=TransformControls.js.map