@relu-interactives/spatial-ecs 0.3.5 → 0.3.7
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/dist/{System-vrU46Vuw.d.cts → System-TmC2EijF.d.cts} +2 -2
- package/dist/{System-vrU46Vuw.d.ts → System-TmC2EijF.d.ts} +2 -2
- package/dist/{XRRig-2686IqLQ.d.cts → XRInteractor-CCUzSqg9.d.ts} +96 -2
- package/dist/{XRRig-D2QURXl1.d.ts → XRInteractor-I2q6TKtF.d.cts} +96 -2
- package/dist/{chunk-4BZYK3JP.js → chunk-FQTOC7HK.js} +135 -88
- package/dist/chunk-FQTOC7HK.js.map +1 -0
- package/dist/{chunk-2LVFGVWI.js → chunk-JRJ3CL5H.js} +3 -3
- package/dist/{chunk-2LVFGVWI.js.map → chunk-JRJ3CL5H.js.map} +1 -1
- package/dist/{chunk-6QC2PJLD.js → chunk-N4GKZ7IV.js} +29 -3
- package/dist/chunk-N4GKZ7IV.js.map +1 -0
- package/dist/{chunk-G53MZVKQ.js → chunk-O6FJA4XW.js} +367 -53
- package/dist/chunk-O6FJA4XW.js.map +1 -0
- package/dist/components/index.cjs +26 -0
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +3 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +1 -1
- package/dist/factories/index.cjs +185 -112
- package/dist/factories/index.cjs.map +1 -1
- package/dist/factories/index.d.cts +7 -3
- package/dist/factories/index.d.ts +7 -3
- package/dist/factories/index.js +3 -3
- package/dist/{index-BvCmmuJ0.d.cts → index-B9nwRDf9.d.cts} +65 -14
- package/dist/{index-BtKOaHfY.d.ts → index-BltjPEhg.d.cts} +10 -3
- package/dist/{index-Xu238jLn.d.cts → index-W8pUajCW.d.ts} +10 -3
- package/dist/{index-B-CViRMx.d.ts → index-_q9TVDI5.d.ts} +65 -14
- package/dist/index.cjs +684 -293
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +35 -9
- package/dist/index.d.ts +35 -9
- package/dist/index.js +8 -8
- package/dist/systems/index.cjs +386 -48
- package/dist/systems/index.cjs.map +1 -1
- package/dist/systems/index.d.cts +2 -2
- package/dist/systems/index.d.ts +2 -2
- package/dist/systems/index.js +3 -3
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/worldSnapshotUtils.d.cts +1 -1
- package/dist/worldSnapshotUtils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-4BZYK3JP.js.map +0 -1
- package/dist/chunk-6QC2PJLD.js.map +0 -1
- package/dist/chunk-G53MZVKQ.js.map +0 -1
|
@@ -1927,6 +1927,7 @@ var XRInteractableComponent = _XRInteractableComponent;
|
|
|
1927
1927
|
var _XRRigComponent = class _XRRigComponent extends Component {
|
|
1928
1928
|
constructor(options) {
|
|
1929
1929
|
super();
|
|
1930
|
+
this.trackingOrigin = options?.trackingOrigin ?? "floor";
|
|
1930
1931
|
this.locomotion = options?.locomotion ?? "teleport";
|
|
1931
1932
|
this.moveSpeed = options?.moveSpeed ?? 2;
|
|
1932
1933
|
this.snapTurn = options?.snapTurn ?? true;
|
|
@@ -1937,6 +1938,29 @@ var _XRRigComponent = class _XRRigComponent extends Component {
|
|
|
1937
1938
|
__name(_XRRigComponent, "XRRigComponent");
|
|
1938
1939
|
var XRRigComponent = _XRRigComponent;
|
|
1939
1940
|
|
|
1941
|
+
// core/components/XRInteractor.ts
|
|
1942
|
+
var _XRInteractorComponent = class _XRInteractorComponent extends Component {
|
|
1943
|
+
constructor(options) {
|
|
1944
|
+
super();
|
|
1945
|
+
this.interactorType = options?.interactorType ?? "both";
|
|
1946
|
+
this.handPreset = options?.handPreset ?? "default";
|
|
1947
|
+
this.handColor = options?.handColor ?? "#e8b48a";
|
|
1948
|
+
this.handOpacity = options?.handOpacity ?? 1;
|
|
1949
|
+
this.handEmissiveIntensity = options?.handEmissiveIntensity ?? 0;
|
|
1950
|
+
this.showRay = options?.showRay ?? true;
|
|
1951
|
+
}
|
|
1952
|
+
};
|
|
1953
|
+
__name(_XRInteractorComponent, "XRInteractorComponent");
|
|
1954
|
+
var XRInteractorComponent = _XRInteractorComponent;
|
|
1955
|
+
var _XRInteractorSideComponent = class _XRInteractorSideComponent extends Component {
|
|
1956
|
+
constructor(options) {
|
|
1957
|
+
super();
|
|
1958
|
+
this.side = options?.side ?? "left";
|
|
1959
|
+
}
|
|
1960
|
+
};
|
|
1961
|
+
__name(_XRInteractorSideComponent, "XRInteractorSideComponent");
|
|
1962
|
+
var XRInteractorSideComponent = _XRInteractorSideComponent;
|
|
1963
|
+
|
|
1940
1964
|
exports.AnimationComponent = AnimationComponent;
|
|
1941
1965
|
exports.AudioComponent = AudioComponent;
|
|
1942
1966
|
exports.CameraComponent = CameraComponent;
|
|
@@ -1976,6 +2000,8 @@ exports.TransformComponent = TransformComponent;
|
|
|
1976
2000
|
exports.VRTeleportAreaComponent = VRTeleportAreaComponent;
|
|
1977
2001
|
exports.VideoComponent = VideoComponent;
|
|
1978
2002
|
exports.XRInteractableComponent = XRInteractableComponent;
|
|
2003
|
+
exports.XRInteractorComponent = XRInteractorComponent;
|
|
2004
|
+
exports.XRInteractorSideComponent = XRInteractorSideComponent;
|
|
1979
2005
|
exports.XRRigComponent = XRRigComponent;
|
|
1980
2006
|
exports.defaultMaterialValue = defaultMaterialValue;
|
|
1981
2007
|
exports.normalizePhysicsState = normalizePhysicsState;
|