@needle-tools/engine 4.8.4-next.5c03fe1 → 4.8.4-next.68d6468
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/{needle-engine.bundle-C3oFZgvW.min.js → needle-engine.bundle-BoN_WoMd.min.js} +56 -56
- package/dist/{needle-engine.bundle-BDQm33td.umd.cjs → needle-engine.bundle-C0vgs1VP.umd.cjs} +43 -43
- package/dist/{needle-engine.bundle-BecMzBfA.js → needle-engine.bundle-D5UIUwHv.js} +395 -392
- package/dist/needle-engine.js +2 -2
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/lib/engine-components/DragControls.js +0 -1
- package/lib/engine-components/DragControls.js.map +1 -1
- package/lib/engine-components/TransformGizmo.js +9 -1
- package/lib/engine-components/TransformGizmo.js.map +1 -1
- package/package.json +1 -1
- package/src/engine-components/DragControls.ts +0 -1
- package/src/engine-components/TransformGizmo.ts +9 -1
|
@@ -130,12 +130,20 @@ export class TransformGizmo extends Behaviour {
|
|
|
130
130
|
const orbit = this.orbit;
|
|
131
131
|
if (orbit) orbit.enabled = !event.value;
|
|
132
132
|
if (event.value) {
|
|
133
|
-
//
|
|
133
|
+
// Start of interaction
|
|
134
134
|
const sync = GameObject.getComponentInParent(this.gameObject, SyncedTransform);
|
|
135
135
|
if (sync) {
|
|
136
|
+
sync.fastMode = true;
|
|
136
137
|
sync.requestOwnership();
|
|
137
138
|
}
|
|
138
139
|
}
|
|
140
|
+
else {
|
|
141
|
+
// End of interaction
|
|
142
|
+
const sync = GameObject.getComponentInParent(this.gameObject, SyncedTransform);
|
|
143
|
+
if (sync) {
|
|
144
|
+
sync.fastMode = false;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
139
147
|
}
|
|
140
148
|
|
|
141
149
|
/**
|