@relu-interactives/spatial-ecs 0.2.9 → 0.2.11
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-AV2_87Zr.d.cts → System-KTHuWc-i.d.cts} +1 -1
- package/dist/{System-AV2_87Zr.d.ts → System-KTHuWc-i.d.ts} +1 -1
- package/dist/{Video-D6mObK_5.d.ts → Video-BnrYbbzu.d.cts} +2 -2
- package/dist/{Video-Bn93p6XV.d.cts → Video-Ds_0Aj66.d.ts} +2 -2
- package/dist/{chunk-ODCWJHPS.js → chunk-OIOUWDOS.js} +3 -3
- package/dist/{chunk-ODCWJHPS.js.map → chunk-OIOUWDOS.js.map} +1 -1
- package/dist/{chunk-PHIEXEKJ.js → chunk-R2WMVXZZ.js} +11 -2
- package/dist/chunk-R2WMVXZZ.js.map +1 -0
- package/dist/{chunk-SABZQFSA.js → chunk-UU6VYCIO.js} +33 -11
- package/dist/chunk-UU6VYCIO.js.map +1 -0
- package/dist/{chunk-AZR6SLQN.js → chunk-XPCVEXMY.js} +2 -2
- package/dist/{chunk-AZR6SLQN.js.map → chunk-XPCVEXMY.js.map} +1 -1
- package/dist/{chunk-LE6ARNYQ.js → chunk-YLRCC4EK.js} +4 -4
- package/dist/{chunk-LE6ARNYQ.js.map → chunk-YLRCC4EK.js.map} +1 -1
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +1 -1
- package/dist/docs/api/Behaviour/classes/Behaviour.md +29 -29
- package/dist/docs/api/Component/classes/Component.md +3 -1
- package/dist/docs/api/components/classes/AnimationComponent.md +26 -26
- package/dist/docs/api/components/classes/AudioComponent.md +19 -19
- package/dist/docs/api/components/classes/CameraComponent.md +14 -14
- package/dist/docs/api/components/classes/EntityType.md +4 -4
- package/dist/docs/api/components/classes/Environment.md +3 -3
- package/dist/docs/api/components/classes/ImageComponent.md +7 -7
- package/dist/docs/api/components/classes/ImageTarget.md +7 -7
- package/dist/docs/api/components/classes/ImageTargetAnchor.md +4 -4
- package/dist/docs/api/components/classes/InstanceSlotComponent.md +52 -0
- package/dist/docs/api/components/classes/InstancedMeshComponent.md +82 -0
- package/dist/docs/api/components/classes/LightComponent.md +6 -6
- package/dist/docs/api/components/classes/MaterialComponent.md +11 -11
- package/dist/docs/api/components/classes/MeshComponent.md +3 -3
- package/dist/docs/api/components/classes/MeshGeometryComponent.md +9 -9
- package/dist/docs/api/components/classes/ModelComponent.md +4 -4
- package/dist/docs/api/components/classes/Name.md +3 -3
- package/dist/docs/api/components/classes/Object3DRef.md +4 -4
- package/dist/docs/api/components/classes/ParentId.md +3 -3
- package/dist/docs/api/components/classes/PhysicsComponent.md +6 -6
- package/dist/docs/api/components/classes/Postprocessing.md +3 -3
- package/dist/docs/api/components/classes/ScriptComponent.md +5 -5
- package/dist/docs/api/components/classes/Selectable.md +3 -3
- package/dist/docs/api/components/classes/SelectionTransformState.md +5 -5
- package/dist/docs/api/components/classes/SpriteComponent.md +7 -7
- package/dist/docs/api/components/classes/TransformComponent.md +12 -12
- package/dist/docs/api/components/classes/VideoComponent.md +28 -28
- package/dist/docs/api/components/functions/normalizePhysicsState.md +1 -1
- package/dist/docs/api/components/index.md +6 -0
- package/dist/docs/api/components/type-aliases/AnimationComponentOptions.md +9 -9
- package/dist/docs/api/components/type-aliases/CameraComponentOptions.md +13 -13
- package/dist/docs/api/components/type-aliases/CameraProjection.md +1 -1
- package/dist/docs/api/components/type-aliases/CameraRuntimeType.md +1 -1
- package/dist/docs/api/components/type-aliases/ColliderShape.md +1 -1
- package/dist/docs/api/components/type-aliases/ColliderState.md +20 -20
- package/dist/docs/api/components/type-aliases/CubeMeshParameters.md +4 -4
- package/dist/docs/api/components/type-aliases/EditableMeshObjectKind.md +1 -1
- package/dist/docs/api/components/type-aliases/EnvironmentFogState.md +8 -8
- package/dist/docs/api/components/type-aliases/EnvironmentFogType.md +1 -1
- package/dist/docs/api/components/type-aliases/EnvironmentGradientEffect.md +1 -1
- package/dist/docs/api/components/type-aliases/EnvironmentSkyboxState.md +7 -7
- package/dist/docs/api/components/type-aliases/EnvironmentSkyboxType.md +1 -1
- package/dist/docs/api/components/type-aliases/EnvironmentState.md +5 -5
- package/dist/docs/api/components/type-aliases/ImageTargetAnchorOptions.md +3 -3
- package/dist/docs/api/components/type-aliases/ImageTargetReference.md +7 -7
- package/dist/docs/api/components/type-aliases/InstanceTransform.md +49 -0
- package/dist/docs/api/components/type-aliases/InstancedMeshKind.md +15 -0
- package/dist/docs/api/components/type-aliases/LightValueState.md +11 -11
- package/dist/docs/api/components/type-aliases/MaterialTypeValue.md +1 -1
- package/dist/docs/api/components/type-aliases/MaterialValueState.md +28 -28
- package/dist/docs/api/components/type-aliases/MeshGeometryParameters.md +1 -1
- package/dist/docs/api/components/type-aliases/MeshGeometryParametersByKind.md +7 -7
- package/dist/docs/api/components/type-aliases/PhysicsState.md +3 -3
- package/dist/docs/api/components/type-aliases/PlaneMeshParameters.md +3 -3
- package/dist/docs/api/components/type-aliases/PostprocessingState.md +62 -62
- package/dist/docs/api/components/type-aliases/RadiusHeightMeshParameters.md +3 -3
- package/dist/docs/api/components/type-aliases/RadiusMeshParameters.md +2 -2
- package/dist/docs/api/components/type-aliases/RigidbodyState.md +17 -17
- package/dist/docs/api/components/type-aliases/RigidbodyType.md +1 -1
- package/dist/docs/api/components/type-aliases/ScriptEntry.md +9 -9
- package/dist/docs/api/components/type-aliases/TextureFilteringValue.md +1 -1
- package/dist/docs/api/components/type-aliases/TransformData.md +4 -4
- package/dist/docs/api/components/type-aliases/TransformModeValue.md +1 -1
- package/dist/docs/api/components/type-aliases/TransformSpaceValue.md +1 -1
- package/dist/docs/api/components/type-aliases/Vec3.md +4 -4
- package/dist/docs/api/components/variables/DEFAULT_COLLIDER_STATE.md +1 -1
- package/dist/docs/api/components/variables/DEFAULT_ENVIRONMENT_STATE.md +1 -1
- package/dist/docs/api/components/variables/DEFAULT_INSTANCED_MESH_PARAMETERS.md +15 -0
- package/dist/docs/api/components/variables/DEFAULT_INSTANCE_TRANSFORM.md +15 -0
- package/dist/docs/api/components/variables/DEFAULT_MESH_GEOMETRY_PARAMETERS.md +1 -1
- package/dist/docs/api/components/variables/DEFAULT_PHYSICS_STATE.md +1 -1
- package/dist/docs/api/components/variables/DEFAULT_POSTPROCESSING_STATE.md +1 -1
- package/dist/docs/api/components/variables/DEFAULT_RIGIDBODY_STATE.md +1 -1
- package/dist/docs/api/index/classes/AnimationStateMachine.md +16 -16
- package/dist/docs/api/index/classes/AnimationStateManager.md +13 -13
- package/dist/docs/api/index/classes/AnimationSystem.md +3 -3
- package/dist/docs/api/index/classes/AudioSystem.md +4 -4
- package/dist/docs/api/index/classes/CameraSyncSystem.md +2 -2
- package/dist/docs/api/index/classes/EnvironmentSyncSystem.md +4 -4
- package/dist/docs/api/index/classes/InputSystem.md +33 -33
- package/dist/docs/api/index/classes/InstancedMeshSystem.md +62 -0
- package/dist/docs/api/index/classes/LightSyncSystem.md +2 -2
- package/dist/docs/api/index/classes/MaterialSyncSystem.md +3 -3
- package/dist/docs/api/index/classes/MeshGeometrySystem.md +2 -2
- package/dist/docs/api/index/classes/ObjectManagementSystem.md +14 -14
- package/dist/docs/api/index/classes/ObjectVisibilitySystem.md +2 -2
- package/dist/docs/api/index/classes/PhysicsSyncSystem.md +4 -4
- package/dist/docs/api/index/classes/PostprocessingSyncSystem.md +4 -4
- package/dist/docs/api/index/classes/RenderSystem.md +3 -3
- package/dist/docs/api/index/classes/ScriptBehaviourSystem.md +4 -4
- package/dist/docs/api/index/classes/TransformSyncSystem.md +2 -2
- package/dist/docs/api/index/classes/VideoSystem.md +4 -4
- package/dist/docs/api/index/classes/World.md +82 -82
- package/dist/docs/api/index/functions/createAnimationComponent.md +1 -1
- package/dist/docs/api/index/functions/createAudioComponent.md +1 -1
- package/dist/docs/api/index/functions/createCameraComponent.md +1 -1
- package/dist/docs/api/index/functions/createEntityTypeComponent.md +2 -2
- package/dist/docs/api/index/functions/createEnvironmentComponent.md +1 -1
- package/dist/docs/api/index/functions/createImageComponent.md +1 -1
- package/dist/docs/api/index/functions/createImageTargetAnchorComponent.md +1 -1
- package/dist/docs/api/index/functions/createImageTargetComponent.md +1 -1
- package/dist/docs/api/index/functions/createInstanceSlotComponent.md +30 -0
- package/dist/docs/api/index/functions/createInstancedMeshComponent.md +36 -0
- package/dist/docs/api/index/functions/createLightComponent.md +1 -1
- package/dist/docs/api/index/functions/createMaterialComponent.md +1 -1
- package/dist/docs/api/index/functions/createMeshComponent.md +1 -1
- package/dist/docs/api/index/functions/createMeshGeometryComponent.md +1 -1
- package/dist/docs/api/index/functions/createModelComponent.md +1 -1
- package/dist/docs/api/index/functions/createNameComponent.md +1 -1
- package/dist/docs/api/index/functions/createObject3DRefComponent.md +1 -1
- package/dist/docs/api/index/functions/createParentIdComponent.md +1 -1
- package/dist/docs/api/index/functions/createPhysicsComponent.md +1 -1
- package/dist/docs/api/index/functions/createPostprocessingComponent.md +1 -1
- package/dist/docs/api/index/functions/createScriptComponent.md +1 -1
- package/dist/docs/api/index/functions/createSelectableComponent.md +1 -1
- package/dist/docs/api/index/functions/createSelectionTransformStateComponent.md +1 -1
- package/dist/docs/api/index/functions/createSpriteComponent.md +1 -1
- package/dist/docs/api/index/functions/createTransformComponent.md +1 -1
- package/dist/docs/api/index/functions/createVideoComponent.md +1 -1
- package/dist/docs/api/index/functions/hydrateWorldFromSnapshot.md +1 -1
- package/dist/docs/api/index/functions/hydrateWorldFromSnapshotDetailed.md +1 -1
- package/dist/docs/api/index/functions/registerDefaultComponentFactories.md +1 -1
- package/dist/docs/api/index/functions/registerDefaultFactories.md +1 -1
- package/dist/docs/api/index/index.md +3 -0
- package/dist/docs/api/index/interfaces/EcsSystem.md +3 -3
- package/dist/docs/api/index/interfaces/StateMachine.md +13 -13
- package/dist/docs/api/index/type-aliases/AnimationStateCallbacks.md +4 -4
- package/dist/docs/api/index/type-aliases/ComponentFactory.md +1 -1
- package/dist/docs/api/index/type-aliases/EcsComponentFactoryKind.md +3 -2
- package/dist/docs/api/index/type-aliases/EcsWorldComponentSnapshot.md +3 -3
- package/dist/docs/api/index/type-aliases/EcsWorldStateSnapshotLike.md +4 -4
- package/dist/docs/api/index/type-aliases/HydrateWorldFromSnapshotResult.md +3 -3
- package/dist/docs/api/index/type-aliases/KeyboardKey.md +1 -1
- package/dist/docs/api/index/type-aliases/MouseButton.md +1 -1
- package/dist/docs/api/index/type-aliases/SelectionContext.md +4 -4
- package/dist/docs/api/index/variables/HYDRATABLE_ENTITY_KINDS.md +1 -1
- package/dist/docs/api/index/variables/KeyboardKeys.md +89 -89
- package/dist/docs/api/typedoc-sidebar.json +1 -1
- package/dist/docs/api/types/type-aliases/AssetInput.md +3 -3
- package/dist/docs/api/types/type-aliases/CheckboxInput.md +1 -1
- package/dist/docs/api/types/type-aliases/ColorInput.md +1 -1
- package/dist/docs/api/types/type-aliases/ComponentInput.md +4 -4
- package/dist/docs/api/types/type-aliases/ComponentKind.md +3 -1
- package/dist/docs/api/types/type-aliases/DropdownInput.md +3 -3
- package/dist/docs/api/types/type-aliases/DropdownOption.md +3 -3
- package/dist/docs/api/types/type-aliases/EcsEntityEditorKind.md +1 -1
- package/dist/docs/api/types/type-aliases/EcsEntityKind.md +4 -2
- package/dist/docs/api/types/type-aliases/EntityId.md +1 -1
- package/dist/docs/api/types/type-aliases/EntityInput.md +3 -3
- package/dist/docs/api/types/type-aliases/FloatInput.md +1 -1
- package/dist/docs/api/types/type-aliases/IntersectionResult.md +3 -3
- package/dist/docs/api/types/type-aliases/ParentLookup.md +3 -3
- package/dist/docs/api/types/type-aliases/SelectionListener.md +1 -1
- package/dist/docs/api/types/type-aliases/SliderInput.md +5 -5
- package/dist/docs/api/types/type-aliases/TextInput.md +1 -1
- package/dist/docs/api/types/type-aliases/ToggleInput.md +1 -1
- package/dist/docs/api/types/type-aliases/Vec3.md +1 -1
- package/dist/docs/api/types/type-aliases/Vector2Input.md +3 -3
- package/dist/docs/api/types/type-aliases/Vector3Input.md +4 -4
- package/dist/docs/api/types/type-aliases/WorldEntityView.md +1 -1
- package/dist/docs/guide/components/instance-slot.md +102 -0
- package/dist/docs/guide/components/instanced-mesh.md +189 -0
- package/dist/docs/guide/spawning/index.md +4 -0
- package/dist/docs/guide/spawning/instanced-mesh.md +267 -0
- package/dist/docs/guide/systems/_sidebar.json +4 -0
- package/dist/docs/guide/systems/instanced-mesh-system.md +32 -0
- package/dist/factories/index.cjs.map +1 -1
- package/dist/factories/index.d.cts +2 -2
- package/dist/factories/index.d.ts +2 -2
- package/dist/factories/index.js +3 -3
- package/dist/{index-B4-ABchF.d.cts → index-ComEYKYI.d.cts} +2 -2
- package/dist/{index-BO49V8aS.d.ts → index-D-gUELQS.d.ts} +2 -2
- package/dist/index.cjs +38 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +9 -9
- package/dist/systems/index.cjs +29 -7
- package/dist/systems/index.cjs.map +1 -1
- package/dist/systems/index.d.cts +11 -2
- package/dist/systems/index.d.ts +11 -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.cjs +9 -0
- package/dist/worldSnapshotUtils.cjs.map +1 -1
- package/dist/worldSnapshotUtils.d.cts +1 -1
- package/dist/worldSnapshotUtils.d.ts +1 -1
- package/dist/worldSnapshotUtils.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-PHIEXEKJ.js.map +0 -1
- package/dist/chunk-SABZQFSA.js.map +0 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: World
|
|
8
8
|
|
|
9
|
-
Defined in: [World.ts:
|
|
9
|
+
Defined in: [World.ts:57](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L57)
|
|
10
10
|
|
|
11
11
|
## Constructors
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ Defined in: [World.ts:56](https://github.com/Relu-Interactives/relu-spatial-ecs-
|
|
|
16
16
|
new World(options): World;
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
Defined in: [World.ts:
|
|
19
|
+
Defined in: [World.ts:86](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L86)
|
|
20
20
|
|
|
21
21
|
#### Parameters
|
|
22
22
|
|
|
@@ -40,7 +40,7 @@ Defined in: [World.ts:85](https://github.com/Relu-Interactives/relu-spatial-ecs-
|
|
|
40
40
|
createEntity(): number;
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
Defined in: [World.ts:
|
|
43
|
+
Defined in: [World.ts:105](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L105)
|
|
44
44
|
|
|
45
45
|
#### Returns
|
|
46
46
|
|
|
@@ -54,7 +54,7 @@ Defined in: [World.ts:104](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
54
54
|
destroyEntity(entityId): void;
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
Defined in: [World.ts:
|
|
57
|
+
Defined in: [World.ts:113](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L113)
|
|
58
58
|
|
|
59
59
|
#### Parameters
|
|
60
60
|
|
|
@@ -74,7 +74,7 @@ Defined in: [World.ts:112](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
74
74
|
hasEntity(entityId): boolean;
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
Defined in: [World.ts:
|
|
77
|
+
Defined in: [World.ts:140](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L140)
|
|
78
78
|
|
|
79
79
|
#### Parameters
|
|
80
80
|
|
|
@@ -94,7 +94,7 @@ Defined in: [World.ts:139](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
94
94
|
getEntities(): number[];
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
Defined in: [World.ts:
|
|
97
|
+
Defined in: [World.ts:144](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L144)
|
|
98
98
|
|
|
99
99
|
#### Returns
|
|
100
100
|
|
|
@@ -108,7 +108,7 @@ Defined in: [World.ts:143](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
108
108
|
getEntityCount(): number;
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
Defined in: [World.ts:
|
|
111
|
+
Defined in: [World.ts:148](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L148)
|
|
112
112
|
|
|
113
113
|
#### Returns
|
|
114
114
|
|
|
@@ -122,7 +122,7 @@ Defined in: [World.ts:147](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
122
122
|
addComponent<T>(entityId, component): void;
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
-
Defined in: [World.ts:
|
|
125
|
+
Defined in: [World.ts:152](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L152)
|
|
126
126
|
|
|
127
127
|
#### Type Parameters
|
|
128
128
|
|
|
@@ -149,7 +149,7 @@ Defined in: [World.ts:151](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
149
149
|
addComponents<T>(entityId, components): void;
|
|
150
150
|
```
|
|
151
151
|
|
|
152
|
-
Defined in: [World.ts:
|
|
152
|
+
Defined in: [World.ts:167](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L167)
|
|
153
153
|
|
|
154
154
|
#### Type Parameters
|
|
155
155
|
|
|
@@ -176,7 +176,7 @@ Defined in: [World.ts:166](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
176
176
|
removeComponent<T>(entityId, componentType): void;
|
|
177
177
|
```
|
|
178
178
|
|
|
179
|
-
Defined in: [World.ts:
|
|
179
|
+
Defined in: [World.ts:188](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L188)
|
|
180
180
|
|
|
181
181
|
#### Type Parameters
|
|
182
182
|
|
|
@@ -203,7 +203,7 @@ Defined in: [World.ts:187](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
203
203
|
getComponent<T>(entityId, componentType): T | undefined;
|
|
204
204
|
```
|
|
205
205
|
|
|
206
|
-
Defined in: [World.ts:
|
|
206
|
+
Defined in: [World.ts:196](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L196)
|
|
207
207
|
|
|
208
208
|
#### Type Parameters
|
|
209
209
|
|
|
@@ -230,7 +230,7 @@ Defined in: [World.ts:195](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
230
230
|
hasComponent<T>(entityId, componentType): boolean;
|
|
231
231
|
```
|
|
232
232
|
|
|
233
|
-
Defined in: [World.ts:
|
|
233
|
+
Defined in: [World.ts:203](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L203)
|
|
234
234
|
|
|
235
235
|
#### Type Parameters
|
|
236
236
|
|
|
@@ -257,7 +257,7 @@ Defined in: [World.ts:202](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
257
257
|
query(...componentTypes): number[];
|
|
258
258
|
```
|
|
259
259
|
|
|
260
|
-
Defined in: [World.ts:
|
|
260
|
+
Defined in: [World.ts:210](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L210)
|
|
261
261
|
|
|
262
262
|
#### Parameters
|
|
263
263
|
|
|
@@ -277,7 +277,7 @@ Defined in: [World.ts:209](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
277
277
|
isEntityVisible(entityId): boolean;
|
|
278
278
|
```
|
|
279
279
|
|
|
280
|
-
Defined in: [World.ts:
|
|
280
|
+
Defined in: [World.ts:224](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L224)
|
|
281
281
|
|
|
282
282
|
Returns `true` if the entity is currently visible (its `Object3DRef.visibility`
|
|
283
283
|
is `true`), or if the entity has no `Object3DRef` component (entities without a
|
|
@@ -302,7 +302,7 @@ updates for hidden objects.
|
|
|
302
302
|
getInputSystem(): EcsSystem | null;
|
|
303
303
|
```
|
|
304
304
|
|
|
305
|
-
Defined in: [World.ts:
|
|
305
|
+
Defined in: [World.ts:229](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L229)
|
|
306
306
|
|
|
307
307
|
#### Returns
|
|
308
308
|
|
|
@@ -316,7 +316,7 @@ Defined in: [World.ts:228](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
316
316
|
getKeyDown(key): boolean;
|
|
317
317
|
```
|
|
318
318
|
|
|
319
|
-
Defined in: [World.ts:
|
|
319
|
+
Defined in: [World.ts:241](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L241)
|
|
320
320
|
|
|
321
321
|
#### Parameters
|
|
322
322
|
|
|
@@ -336,7 +336,7 @@ Defined in: [World.ts:240](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
336
336
|
getKeyUp(key): boolean;
|
|
337
337
|
```
|
|
338
338
|
|
|
339
|
-
Defined in: [World.ts:
|
|
339
|
+
Defined in: [World.ts:250](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L250)
|
|
340
340
|
|
|
341
341
|
#### Parameters
|
|
342
342
|
|
|
@@ -356,7 +356,7 @@ Defined in: [World.ts:249](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
356
356
|
getKey(key): boolean;
|
|
357
357
|
```
|
|
358
358
|
|
|
359
|
-
Defined in: [World.ts:
|
|
359
|
+
Defined in: [World.ts:259](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L259)
|
|
360
360
|
|
|
361
361
|
#### Parameters
|
|
362
362
|
|
|
@@ -376,7 +376,7 @@ Defined in: [World.ts:258](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
376
376
|
getMouse(button): boolean;
|
|
377
377
|
```
|
|
378
378
|
|
|
379
|
-
Defined in: [World.ts:
|
|
379
|
+
Defined in: [World.ts:268](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L268)
|
|
380
380
|
|
|
381
381
|
#### Parameters
|
|
382
382
|
|
|
@@ -396,7 +396,7 @@ Defined in: [World.ts:267](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
396
396
|
getMouseDown(button): boolean;
|
|
397
397
|
```
|
|
398
398
|
|
|
399
|
-
Defined in: [World.ts:
|
|
399
|
+
Defined in: [World.ts:277](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L277)
|
|
400
400
|
|
|
401
401
|
#### Parameters
|
|
402
402
|
|
|
@@ -416,7 +416,7 @@ Defined in: [World.ts:276](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
416
416
|
getMouseUp(button): boolean;
|
|
417
417
|
```
|
|
418
418
|
|
|
419
|
-
Defined in: [World.ts:
|
|
419
|
+
Defined in: [World.ts:286](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L286)
|
|
420
420
|
|
|
421
421
|
#### Parameters
|
|
422
422
|
|
|
@@ -436,7 +436,7 @@ Defined in: [World.ts:285](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
436
436
|
getScrollClick(): boolean;
|
|
437
437
|
```
|
|
438
438
|
|
|
439
|
-
Defined in: [World.ts:
|
|
439
|
+
Defined in: [World.ts:295](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L295)
|
|
440
440
|
|
|
441
441
|
#### Returns
|
|
442
442
|
|
|
@@ -450,7 +450,7 @@ Defined in: [World.ts:294](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
450
450
|
getScrollClickDown(): boolean;
|
|
451
451
|
```
|
|
452
452
|
|
|
453
|
-
Defined in: [World.ts:
|
|
453
|
+
Defined in: [World.ts:304](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L304)
|
|
454
454
|
|
|
455
455
|
#### Returns
|
|
456
456
|
|
|
@@ -464,7 +464,7 @@ Defined in: [World.ts:303](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
464
464
|
getScrollClickUp(): boolean;
|
|
465
465
|
```
|
|
466
466
|
|
|
467
|
-
Defined in: [World.ts:
|
|
467
|
+
Defined in: [World.ts:313](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L313)
|
|
468
468
|
|
|
469
469
|
#### Returns
|
|
470
470
|
|
|
@@ -481,7 +481,7 @@ getScrollDelta(): {
|
|
|
481
481
|
};
|
|
482
482
|
```
|
|
483
483
|
|
|
484
|
-
Defined in: [World.ts:
|
|
484
|
+
Defined in: [World.ts:322](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L322)
|
|
485
485
|
|
|
486
486
|
#### Returns
|
|
487
487
|
|
|
@@ -494,8 +494,8 @@ Defined in: [World.ts:321](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
494
494
|
|
|
495
495
|
| Name | Type | Defined in |
|
|
496
496
|
| ------ | ------ | ------ |
|
|
497
|
-
| `x` | `number` | [World.ts:
|
|
498
|
-
| `y` | `number` | [World.ts:
|
|
497
|
+
| `x` | `number` | [World.ts:322](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L322) |
|
|
498
|
+
| `y` | `number` | [World.ts:322](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L322) |
|
|
499
499
|
|
|
500
500
|
***
|
|
501
501
|
|
|
@@ -508,7 +508,7 @@ consumeScrollDelta(): {
|
|
|
508
508
|
};
|
|
509
509
|
```
|
|
510
510
|
|
|
511
|
-
Defined in: [World.ts:
|
|
511
|
+
Defined in: [World.ts:331](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L331)
|
|
512
512
|
|
|
513
513
|
#### Returns
|
|
514
514
|
|
|
@@ -521,8 +521,8 @@ Defined in: [World.ts:330](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
521
521
|
|
|
522
522
|
| Name | Type | Defined in |
|
|
523
523
|
| ------ | ------ | ------ |
|
|
524
|
-
| `x` | `number` | [World.ts:
|
|
525
|
-
| `y` | `number` | [World.ts:
|
|
524
|
+
| `x` | `number` | [World.ts:331](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L331) |
|
|
525
|
+
| `y` | `number` | [World.ts:331](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L331) |
|
|
526
526
|
|
|
527
527
|
***
|
|
528
528
|
|
|
@@ -535,7 +535,7 @@ getMousePosition(): {
|
|
|
535
535
|
};
|
|
536
536
|
```
|
|
537
537
|
|
|
538
|
-
Defined in: [World.ts:
|
|
538
|
+
Defined in: [World.ts:340](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L340)
|
|
539
539
|
|
|
540
540
|
#### Returns
|
|
541
541
|
|
|
@@ -548,8 +548,8 @@ Defined in: [World.ts:339](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
548
548
|
|
|
549
549
|
| Name | Type | Defined in |
|
|
550
550
|
| ------ | ------ | ------ |
|
|
551
|
-
| `x` | `number` | [World.ts:
|
|
552
|
-
| `y` | `number` | [World.ts:
|
|
551
|
+
| `x` | `number` | [World.ts:340](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L340) |
|
|
552
|
+
| `y` | `number` | [World.ts:340](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L340) |
|
|
553
553
|
|
|
554
554
|
***
|
|
555
555
|
|
|
@@ -562,7 +562,7 @@ getMouseDelta(): {
|
|
|
562
562
|
};
|
|
563
563
|
```
|
|
564
564
|
|
|
565
|
-
Defined in: [World.ts:
|
|
565
|
+
Defined in: [World.ts:349](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L349)
|
|
566
566
|
|
|
567
567
|
#### Returns
|
|
568
568
|
|
|
@@ -575,8 +575,8 @@ Defined in: [World.ts:348](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
575
575
|
|
|
576
576
|
| Name | Type | Defined in |
|
|
577
577
|
| ------ | ------ | ------ |
|
|
578
|
-
| `x` | `number` | [World.ts:
|
|
579
|
-
| `y` | `number` | [World.ts:
|
|
578
|
+
| `x` | `number` | [World.ts:349](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L349) |
|
|
579
|
+
| `y` | `number` | [World.ts:349](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L349) |
|
|
580
580
|
|
|
581
581
|
***
|
|
582
582
|
|
|
@@ -589,7 +589,7 @@ consumeMouseDelta(): {
|
|
|
589
589
|
};
|
|
590
590
|
```
|
|
591
591
|
|
|
592
|
-
Defined in: [World.ts:
|
|
592
|
+
Defined in: [World.ts:358](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L358)
|
|
593
593
|
|
|
594
594
|
#### Returns
|
|
595
595
|
|
|
@@ -602,8 +602,8 @@ Defined in: [World.ts:357](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
602
602
|
|
|
603
603
|
| Name | Type | Defined in |
|
|
604
604
|
| ------ | ------ | ------ |
|
|
605
|
-
| `x` | `number` | [World.ts:
|
|
606
|
-
| `y` | `number` | [World.ts:
|
|
605
|
+
| `x` | `number` | [World.ts:358](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L358) |
|
|
606
|
+
| `y` | `number` | [World.ts:358](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L358) |
|
|
607
607
|
|
|
608
608
|
***
|
|
609
609
|
|
|
@@ -613,7 +613,7 @@ Defined in: [World.ts:357](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
613
613
|
getRapierModule(): Promise<__module>;
|
|
614
614
|
```
|
|
615
615
|
|
|
616
|
-
Defined in: [World.ts:
|
|
616
|
+
Defined in: [World.ts:367](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L367)
|
|
617
617
|
|
|
618
618
|
#### Returns
|
|
619
619
|
|
|
@@ -627,7 +627,7 @@ Defined in: [World.ts:366](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
627
627
|
getPhysicsWorld(): World | null;
|
|
628
628
|
```
|
|
629
629
|
|
|
630
|
-
Defined in: [World.ts:
|
|
630
|
+
Defined in: [World.ts:385](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L385)
|
|
631
631
|
|
|
632
632
|
#### Returns
|
|
633
633
|
|
|
@@ -641,7 +641,7 @@ Defined in: [World.ts:384](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
641
641
|
setPhysicsWorld(physicsWorld): void;
|
|
642
642
|
```
|
|
643
643
|
|
|
644
|
-
Defined in: [World.ts:
|
|
644
|
+
Defined in: [World.ts:389](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L389)
|
|
645
645
|
|
|
646
646
|
#### Parameters
|
|
647
647
|
|
|
@@ -661,7 +661,7 @@ Defined in: [World.ts:388](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
661
661
|
createPhysicsWorld(options?): Promise<World | null>;
|
|
662
662
|
```
|
|
663
663
|
|
|
664
|
-
Defined in: [World.ts:
|
|
664
|
+
Defined in: [World.ts:393](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L393)
|
|
665
665
|
|
|
666
666
|
#### Parameters
|
|
667
667
|
|
|
@@ -685,7 +685,7 @@ Defined in: [World.ts:392](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
685
685
|
lockMousePointer(): boolean;
|
|
686
686
|
```
|
|
687
687
|
|
|
688
|
-
Defined in: [World.ts:
|
|
688
|
+
Defined in: [World.ts:412](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L412)
|
|
689
689
|
|
|
690
690
|
#### Returns
|
|
691
691
|
|
|
@@ -699,7 +699,7 @@ Defined in: [World.ts:411](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
699
699
|
unlockMousePointer(): boolean;
|
|
700
700
|
```
|
|
701
701
|
|
|
702
|
-
Defined in: [World.ts:
|
|
702
|
+
Defined in: [World.ts:443](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L443)
|
|
703
703
|
|
|
704
704
|
#### Returns
|
|
705
705
|
|
|
@@ -713,7 +713,7 @@ Defined in: [World.ts:442](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
713
713
|
isMousePointerLocked(): boolean;
|
|
714
714
|
```
|
|
715
715
|
|
|
716
|
-
Defined in: [World.ts:
|
|
716
|
+
Defined in: [World.ts:464](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L464)
|
|
717
717
|
|
|
718
718
|
#### Returns
|
|
719
719
|
|
|
@@ -727,7 +727,7 @@ Defined in: [World.ts:463](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
727
727
|
getSystem<T>(system): T;
|
|
728
728
|
```
|
|
729
729
|
|
|
730
|
-
Defined in: [World.ts:
|
|
730
|
+
Defined in: [World.ts:480](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L480)
|
|
731
731
|
|
|
732
732
|
#### Type Parameters
|
|
733
733
|
|
|
@@ -753,7 +753,7 @@ Defined in: [World.ts:479](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
753
753
|
hasSystem<T>(system): boolean;
|
|
754
754
|
```
|
|
755
755
|
|
|
756
|
-
Defined in: [World.ts:
|
|
756
|
+
Defined in: [World.ts:497](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L497)
|
|
757
757
|
|
|
758
758
|
#### Type Parameters
|
|
759
759
|
|
|
@@ -779,7 +779,7 @@ Defined in: [World.ts:496](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
779
779
|
addSystem(system): void;
|
|
780
780
|
```
|
|
781
781
|
|
|
782
|
-
Defined in: [World.ts:
|
|
782
|
+
Defined in: [World.ts:506](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L506)
|
|
783
783
|
|
|
784
784
|
#### Parameters
|
|
785
785
|
|
|
@@ -799,7 +799,7 @@ Defined in: [World.ts:505](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
799
799
|
addSystems(systems): void;
|
|
800
800
|
```
|
|
801
801
|
|
|
802
|
-
Defined in: [World.ts:
|
|
802
|
+
Defined in: [World.ts:510](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L510)
|
|
803
803
|
|
|
804
804
|
#### Parameters
|
|
805
805
|
|
|
@@ -823,7 +823,7 @@ setup(__namedParameters): {
|
|
|
823
823
|
};
|
|
824
824
|
```
|
|
825
825
|
|
|
826
|
-
Defined in: [World.ts:
|
|
826
|
+
Defined in: [World.ts:516](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L516)
|
|
827
827
|
|
|
828
828
|
#### Parameters
|
|
829
829
|
|
|
@@ -845,9 +845,9 @@ Defined in: [World.ts:515](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
845
845
|
|
|
846
846
|
| Name | Type | Defined in |
|
|
847
847
|
| ------ | ------ | ------ |
|
|
848
|
-
| `objectManagementSystem` | [`ObjectManagementSystem`](ObjectManagementSystem.md) | [World.ts:
|
|
849
|
-
| `transformSyncSystem` | [`TransformSyncSystem`](TransformSyncSystem.md) | [World.ts:
|
|
850
|
-
| `renderSystem` | [`RenderSystem`](RenderSystem.md) | [World.ts:
|
|
848
|
+
| `objectManagementSystem` | [`ObjectManagementSystem`](ObjectManagementSystem.md) | [World.ts:517](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L517) |
|
|
849
|
+
| `transformSyncSystem` | [`TransformSyncSystem`](TransformSyncSystem.md) | [World.ts:518](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L518) |
|
|
850
|
+
| `renderSystem` | [`RenderSystem`](RenderSystem.md) | [World.ts:519](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L519) |
|
|
851
851
|
|
|
852
852
|
***
|
|
853
853
|
|
|
@@ -857,7 +857,7 @@ Defined in: [World.ts:515](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
857
857
|
isEditorMode(): boolean;
|
|
858
858
|
```
|
|
859
859
|
|
|
860
|
-
Defined in: [World.ts:
|
|
860
|
+
Defined in: [World.ts:602](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L602)
|
|
861
861
|
|
|
862
862
|
#### Returns
|
|
863
863
|
|
|
@@ -871,7 +871,7 @@ Defined in: [World.ts:599](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
871
871
|
pause(): void;
|
|
872
872
|
```
|
|
873
873
|
|
|
874
|
-
Defined in: [World.ts:
|
|
874
|
+
Defined in: [World.ts:613](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L613)
|
|
875
875
|
|
|
876
876
|
Pauses world simulation. While paused, `update()` skips all system ticks so
|
|
877
877
|
physics, animation, scripts, and rendering stop advancing. The last rendered
|
|
@@ -891,7 +891,7 @@ Call [resume](#resume) to continue.
|
|
|
891
891
|
resume(): void;
|
|
892
892
|
```
|
|
893
893
|
|
|
894
|
-
Defined in: [World.ts:
|
|
894
|
+
Defined in: [World.ts:621](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L621)
|
|
895
895
|
|
|
896
896
|
Resumes world simulation after a previous [pause](#pause) call.
|
|
897
897
|
Has no effect if the world is not paused.
|
|
@@ -908,7 +908,7 @@ Has no effect if the world is not paused.
|
|
|
908
908
|
isPaused(): boolean;
|
|
909
909
|
```
|
|
910
910
|
|
|
911
|
-
Defined in: [World.ts:
|
|
911
|
+
Defined in: [World.ts:635](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L635)
|
|
912
912
|
|
|
913
913
|
Returns `true` if the world is currently paused.
|
|
914
914
|
|
|
@@ -932,7 +932,7 @@ if (this.world.isPaused()) {
|
|
|
932
932
|
getScene(): Scene;
|
|
933
933
|
```
|
|
934
934
|
|
|
935
|
-
Defined in: [World.ts:
|
|
935
|
+
Defined in: [World.ts:639](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L639)
|
|
936
936
|
|
|
937
937
|
#### Returns
|
|
938
938
|
|
|
@@ -946,7 +946,7 @@ Defined in: [World.ts:636](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
946
946
|
getCamera(): PerspectiveCamera;
|
|
947
947
|
```
|
|
948
948
|
|
|
949
|
-
Defined in: [World.ts:
|
|
949
|
+
Defined in: [World.ts:643](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L643)
|
|
950
950
|
|
|
951
951
|
#### Returns
|
|
952
952
|
|
|
@@ -960,7 +960,7 @@ Defined in: [World.ts:640](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
960
960
|
getRenderer(): WebGLRenderer;
|
|
961
961
|
```
|
|
962
962
|
|
|
963
|
-
Defined in: [World.ts:
|
|
963
|
+
Defined in: [World.ts:647](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L647)
|
|
964
964
|
|
|
965
965
|
#### Returns
|
|
966
966
|
|
|
@@ -974,7 +974,7 @@ Defined in: [World.ts:644](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
974
974
|
update(deltaTime): void;
|
|
975
975
|
```
|
|
976
976
|
|
|
977
|
-
Defined in: [World.ts:
|
|
977
|
+
Defined in: [World.ts:651](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L651)
|
|
978
978
|
|
|
979
979
|
#### Parameters
|
|
980
980
|
|
|
@@ -994,7 +994,7 @@ Defined in: [World.ts:648](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
994
994
|
dispose(): void;
|
|
995
995
|
```
|
|
996
996
|
|
|
997
|
-
Defined in: [World.ts:
|
|
997
|
+
Defined in: [World.ts:658](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L658)
|
|
998
998
|
|
|
999
999
|
#### Returns
|
|
1000
1000
|
|
|
@@ -1008,7 +1008,7 @@ Defined in: [World.ts:655](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
1008
1008
|
setSelectedEntity(entityId): void;
|
|
1009
1009
|
```
|
|
1010
1010
|
|
|
1011
|
-
Defined in: [World.ts:
|
|
1011
|
+
Defined in: [World.ts:670](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L670)
|
|
1012
1012
|
|
|
1013
1013
|
#### Parameters
|
|
1014
1014
|
|
|
@@ -1028,7 +1028,7 @@ Defined in: [World.ts:667](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
1028
1028
|
getSelectedEntity(): number | null;
|
|
1029
1029
|
```
|
|
1030
1030
|
|
|
1031
|
-
Defined in: [World.ts:
|
|
1031
|
+
Defined in: [World.ts:692](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L692)
|
|
1032
1032
|
|
|
1033
1033
|
#### Returns
|
|
1034
1034
|
|
|
@@ -1042,7 +1042,7 @@ Defined in: [World.ts:689](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
1042
1042
|
getEntitiesByComponent(component): WorldEntityView[];
|
|
1043
1043
|
```
|
|
1044
1044
|
|
|
1045
|
-
Defined in: [World.ts:
|
|
1045
|
+
Defined in: [World.ts:752](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L752)
|
|
1046
1046
|
|
|
1047
1047
|
#### Parameters
|
|
1048
1048
|
|
|
@@ -1062,7 +1062,7 @@ Defined in: [World.ts:749](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
1062
1062
|
getEntitiesByName(name): WorldEntityView[];
|
|
1063
1063
|
```
|
|
1064
1064
|
|
|
1065
|
-
Defined in: [World.ts:
|
|
1065
|
+
Defined in: [World.ts:766](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L766)
|
|
1066
1066
|
|
|
1067
1067
|
#### Parameters
|
|
1068
1068
|
|
|
@@ -1082,7 +1082,7 @@ Defined in: [World.ts:763](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
1082
1082
|
getEntityByName(name): WorldEntityView | null;
|
|
1083
1083
|
```
|
|
1084
1084
|
|
|
1085
|
-
Defined in: [World.ts:
|
|
1085
|
+
Defined in: [World.ts:775](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L775)
|
|
1086
1086
|
|
|
1087
1087
|
#### Parameters
|
|
1088
1088
|
|
|
@@ -1102,7 +1102,7 @@ Defined in: [World.ts:772](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
1102
1102
|
getEntityById(entityId): WorldEntityView | null;
|
|
1103
1103
|
```
|
|
1104
1104
|
|
|
1105
|
-
Defined in: [World.ts:
|
|
1105
|
+
Defined in: [World.ts:780](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L780)
|
|
1106
1106
|
|
|
1107
1107
|
#### Parameters
|
|
1108
1108
|
|
|
@@ -1122,7 +1122,7 @@ Defined in: [World.ts:777](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
1122
1122
|
getObjectManagementSystem(): ObjectManagementSystem;
|
|
1123
1123
|
```
|
|
1124
1124
|
|
|
1125
|
-
Defined in: [World.ts:
|
|
1125
|
+
Defined in: [World.ts:788](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L788)
|
|
1126
1126
|
|
|
1127
1127
|
#### Returns
|
|
1128
1128
|
|
|
@@ -1140,7 +1140,7 @@ raycast(
|
|
|
1140
1140
|
far?): IntersectionResult[];
|
|
1141
1141
|
```
|
|
1142
1142
|
|
|
1143
|
-
Defined in: [World.ts:
|
|
1143
|
+
Defined in: [World.ts:824](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L824)
|
|
1144
1144
|
|
|
1145
1145
|
Cast a ray from `origin` along `direction` and return every intersected
|
|
1146
1146
|
entity-bound mesh, sorted by distance. Each result is a standard
|
|
@@ -1183,7 +1183,7 @@ raycastFrom(
|
|
|
1183
1183
|
far?): IntersectionResult[];
|
|
1184
1184
|
```
|
|
1185
1185
|
|
|
1186
|
-
Defined in: [World.ts:
|
|
1186
|
+
Defined in: [World.ts:875](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L875)
|
|
1187
1187
|
|
|
1188
1188
|
Cast a ray from an entity's world-space position along its forward
|
|
1189
1189
|
direction (the +Z axis of its world matrix). Returns intersected
|
|
@@ -1220,7 +1220,7 @@ if (closest && closest.entityId !== null) {
|
|
|
1220
1220
|
getEntityScript<T>(entityId): T | null;
|
|
1221
1221
|
```
|
|
1222
1222
|
|
|
1223
|
-
Defined in: [World.ts:
|
|
1223
|
+
Defined in: [World.ts:958](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L958)
|
|
1224
1224
|
|
|
1225
1225
|
#### Type Parameters
|
|
1226
1226
|
|
|
@@ -1246,7 +1246,7 @@ Defined in: [World.ts:955](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
1246
1246
|
getScripts<T>(className): T[];
|
|
1247
1247
|
```
|
|
1248
1248
|
|
|
1249
|
-
Defined in: [World.ts:
|
|
1249
|
+
Defined in: [World.ts:971](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L971)
|
|
1250
1250
|
|
|
1251
1251
|
#### Type Parameters
|
|
1252
1252
|
|
|
@@ -1272,7 +1272,7 @@ Defined in: [World.ts:968](https://github.com/Relu-Interactives/relu-spatial-ecs
|
|
|
1272
1272
|
getScript<T>(className): T | null;
|
|
1273
1273
|
```
|
|
1274
1274
|
|
|
1275
|
-
Defined in: [World.ts:
|
|
1275
|
+
Defined in: [World.ts:1012](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L1012)
|
|
1276
1276
|
|
|
1277
1277
|
#### Type Parameters
|
|
1278
1278
|
|
|
@@ -1298,7 +1298,7 @@ Defined in: [World.ts:1009](https://github.com/Relu-Interactives/relu-spatial-ec
|
|
|
1298
1298
|
getAllEntities(): WorldEntityView[];
|
|
1299
1299
|
```
|
|
1300
1300
|
|
|
1301
|
-
Defined in: [World.ts:
|
|
1301
|
+
Defined in: [World.ts:1017](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L1017)
|
|
1302
1302
|
|
|
1303
1303
|
#### Returns
|
|
1304
1304
|
|
|
@@ -1312,7 +1312,7 @@ Defined in: [World.ts:1014](https://github.com/Relu-Interactives/relu-spatial-ec
|
|
|
1312
1312
|
onSelectionChanged(listener): () => void;
|
|
1313
1313
|
```
|
|
1314
1314
|
|
|
1315
|
-
Defined in: [World.ts:
|
|
1315
|
+
Defined in: [World.ts:1023](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L1023)
|
|
1316
1316
|
|
|
1317
1317
|
#### Parameters
|
|
1318
1318
|
|
|
@@ -1332,7 +1332,7 @@ Defined in: [World.ts:1020](https://github.com/Relu-Interactives/relu-spatial-ec
|
|
|
1332
1332
|
subscribe(listener): () => void;
|
|
1333
1333
|
```
|
|
1334
1334
|
|
|
1335
|
-
Defined in: [World.ts:
|
|
1335
|
+
Defined in: [World.ts:1031](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L1031)
|
|
1336
1336
|
|
|
1337
1337
|
#### Parameters
|
|
1338
1338
|
|
|
@@ -1352,7 +1352,7 @@ Defined in: [World.ts:1028](https://github.com/Relu-Interactives/relu-spatial-ec
|
|
|
1352
1352
|
getDebugSnapshot(maxDepth?): unknown;
|
|
1353
1353
|
```
|
|
1354
1354
|
|
|
1355
|
-
Defined in: [World.ts:
|
|
1355
|
+
Defined in: [World.ts:1039](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L1039)
|
|
1356
1356
|
|
|
1357
1357
|
#### Parameters
|
|
1358
1358
|
|
|
@@ -1372,7 +1372,7 @@ Defined in: [World.ts:1036](https://github.com/Relu-Interactives/relu-spatial-ec
|
|
|
1372
1372
|
getDebugSignature(maxDepth?): string;
|
|
1373
1373
|
```
|
|
1374
1374
|
|
|
1375
|
-
Defined in: [World.ts:
|
|
1375
|
+
Defined in: [World.ts:1089](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L1089)
|
|
1376
1376
|
|
|
1377
1377
|
#### Parameters
|
|
1378
1378
|
|
|
@@ -1392,7 +1392,7 @@ Defined in: [World.ts:1086](https://github.com/Relu-Interactives/relu-spatial-ec
|
|
|
1392
1392
|
createHistorySnapshot(): WorldHistorySnapshot;
|
|
1393
1393
|
```
|
|
1394
1394
|
|
|
1395
|
-
Defined in: [World.ts:
|
|
1395
|
+
Defined in: [World.ts:1093](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L1093)
|
|
1396
1396
|
|
|
1397
1397
|
#### Returns
|
|
1398
1398
|
|
|
@@ -1406,7 +1406,7 @@ Defined in: [World.ts:1090](https://github.com/Relu-Interactives/relu-spatial-ec
|
|
|
1406
1406
|
applyHistorySnapshot(snapshot): void;
|
|
1407
1407
|
```
|
|
1408
1408
|
|
|
1409
|
-
Defined in: [World.ts:
|
|
1409
|
+
Defined in: [World.ts:1114](https://github.com/Relu-Interactives/relu-spatial-ecs-engine/blob/557de6ec692f18eb77e7225eb98be3af4dfc0e33/core/World.ts#L1114)
|
|
1410
1410
|
|
|
1411
1411
|
#### Parameters
|
|
1412
1412
|
|