Skip to content

Commit bf67d8f

Browse files
committed
Merge branch 'dev' into IR-8644-Networked-Hyperflux
2 parents c7c8c47 + 1ec50af commit bf67d8f

File tree

7 files changed

+32
-17
lines changed

7 files changed

+32
-17
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ The Original Code is Infinite Reality Engine.
498498
The Original Developer is the Initial Developer. The Initial Developer of the
499499
Original Code is the Infinite Reality Engine team.
500500

501-
All portions of the code written by the Infinite Reality Engine team are Copyright © 2021-2023
501+
All portions of the code written by the Infinite Reality Engine team are Copyright © 2021-2025
502502
Infinite Reality Engine. All Rights Reserved."
503503

504504
[NOTE: The text of this Exhibit A may differ slightly from the text of the

src/devtool/EmulatorDevtools.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The Original Code is Infinite Reality Engine.
1919
The Original Developer is the Initial Developer. The Initial Developer of the
2020
Original Code is the Infinite Reality Engine team.
2121
22-
All portions of the code written by the Infinite Reality Engine team are Copyright © 2021-2023
22+
All portions of the code written by the Infinite Reality Engine team are Copyright © 2021-2025
2323
Infinite Reality Engine. All Rights Reserved.
2424
*/
2525

src/examples/MultipleCanvasCameras.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { CameraComponent } from '@ir-engine/spatial/src/camera/components/Camera
1919
import { CameraOrbitComponent } from '@ir-engine/spatial/src/camera/components/CameraOrbitComponent'
2020
import { NameComponent } from '@ir-engine/spatial/src/common/NameComponent'
2121
import { InputComponent } from '@ir-engine/spatial/src/input/components/InputComponent'
22-
import { RendererComponent } from '@ir-engine/spatial/src/renderer/WebGLRendererSystem'
22+
import { RendererComponent } from '@ir-engine/spatial/src/renderer/components/RendererComponent'
2323
import { SceneComponent } from '@ir-engine/spatial/src/renderer/components/SceneComponents'
2424
import { VisibleComponent } from '@ir-engine/spatial/src/renderer/components/VisibleComponent'
2525
import React, { useEffect, useRef } from 'react'

src/examples/MultipleCanvasScenes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { CameraComponent } from '@ir-engine/spatial/src/camera/components/Camera
1818
import { CameraOrbitComponent } from '@ir-engine/spatial/src/camera/components/CameraOrbitComponent'
1919
import { NameComponent } from '@ir-engine/spatial/src/common/NameComponent'
2020
import { InputComponent } from '@ir-engine/spatial/src/input/components/InputComponent'
21-
import { RendererComponent } from '@ir-engine/spatial/src/renderer/WebGLRendererSystem'
21+
import { RendererComponent } from '@ir-engine/spatial/src/renderer/components/RendererComponent'
2222
import { SceneComponent } from '@ir-engine/spatial/src/renderer/components/SceneComponents'
2323
import { VisibleComponent } from '@ir-engine/spatial/src/renderer/components/VisibleComponent'
2424
import React, { useEffect, useRef } from 'react'

src/examples/Retargeting.tsx

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React, { useEffect } from 'react'
22
import { Bone, ConeGeometry, Mesh, MeshBasicMaterial, Quaternion, SkeletonHelper, SphereGeometry, Vector3 } from 'three'
33

44
import { AVATAR_FILE_ALLOWED_EXTENSIONS } from '@ir-engine/common/src/constants/AvatarConstants'
5-
import { createEntity, getChildrenWithComponents, removeEntity } from '@ir-engine/ecs'
6-
import { Entity } from '@ir-engine/ecs/src/Entity'
5+
import { createEntity, getChildrenWithComponents, removeEntity, UUIDComponent } from '@ir-engine/ecs'
6+
import { Entity, EntityID, SourceID } from '@ir-engine/ecs/src/Entity'
77
import { DndWrapper } from '@ir-engine/editor/src/components/dnd/DndWrapper'
88
import { defineState, getMutableState, getState, none, useHookstate } from '@ir-engine/hyperflux'
99

@@ -12,9 +12,8 @@ import { MixamoBoneNames } from '@ir-engine/engine/src/avatar/AvatarBoneMatching
1212
import { VRMHumanBoneName } from '@ir-engine/engine/src/avatar/maps/VRMHumanBoneName'
1313
import { AssetState } from '@ir-engine/engine/src/gltf/GLTFState'
1414
import { ReferenceSpaceState, TransformComponent } from '@ir-engine/spatial'
15-
import { NameComponent } from '@ir-engine/spatial/src/common/NameComponent'
1615
import { BoneComponent } from '@ir-engine/spatial/src/renderer/components/BoneComponent'
17-
import { ObjectComponent, addObjectToGroup } from '@ir-engine/spatial/src/renderer/components/ObjectComponent'
16+
import { addObjectToGroup, ObjectComponent } from '@ir-engine/spatial/src/renderer/components/ObjectComponent'
1817
import { VisibleComponent } from '@ir-engine/spatial/src/renderer/components/VisibleComponent'
1918
import { Template } from './utils/template'
2019

@@ -254,7 +253,10 @@ const RetargetingDND = () => {
254253
scale: helper.scale
255254
})
256255
addObjectToGroup(helperEntity, helper)
257-
setComponent(helperEntity, NameComponent, bone.name + '--helper')
256+
setComponent(helperEntity, UUIDComponent, {
257+
entitySourceID: 'helper' as SourceID,
258+
entityID: (bone.name + '--helper') as EntityID
259+
})
258260
setComponent(helperEntity, EntityTreeComponent, { parentEntity: entity })
259261

260262
if (bones.includes(bone.name)) getMutableState(BoneMatchedState)[bone.name].set(true)
@@ -285,7 +287,12 @@ const RetargetingDND = () => {
285287
const originalBoneName = useHookstate(() => bone.name)
286288

287289
const boneHelper = getComponent(
288-
NameComponent.getEntitiesByName(boneName.value + '--helper')[0],
290+
UUIDComponent.getEntityByUUID(
291+
UUIDComponent.join({
292+
entitySourceID: 'helper' as SourceID,
293+
entityID: (boneName.value + '--helper') as EntityID
294+
})
295+
),
289296
ObjectComponent
290297
) as Mesh<ConeGeometry, MeshBasicMaterial>
291298
const isBone = bone.type === 'Bone'
@@ -301,8 +308,16 @@ const RetargetingDND = () => {
301308
boneHelper.name = name + '--helper'
302309
const currentBoneName = boneName.value as MixamoBoneNames
303310
boneName.set(name)
304-
const helperEntity = NameComponent.getEntitiesByName(currentBoneName + '--helper')[0]
305-
setComponent(helperEntity, NameComponent, name + '--helper')
311+
const helperEntity = UUIDComponent.getEntityByUUID(
312+
UUIDComponent.join({
313+
entitySourceID: 'helper' as SourceID,
314+
entityID: (currentBoneName + '--helper') as EntityID
315+
})
316+
)
317+
setComponent(helperEntity, UUIDComponent, {
318+
entitySourceID: 'helper' as SourceID,
319+
entityID: (name + '--helper') as EntityID
320+
})
306321
}
307322

308323
useEffect(() => {

src/examples/avatarSimple.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import {
3939
TransformComponent
4040
} from '@ir-engine/spatial'
4141
import { NameComponent } from '@ir-engine/spatial/src/common/NameComponent'
42-
import { RendererComponent } from '@ir-engine/spatial/src/renderer/WebGLRendererSystem'
42+
import { RendererComponent } from '@ir-engine/spatial/src/renderer/components/RendererComponent'
4343
import { SceneComponent } from '@ir-engine/spatial/src/renderer/components/SceneComponents'
4444
import { VisibleComponent } from '@ir-engine/spatial/src/renderer/components/VisibleComponent'
4545

src/examples/multipleScenes.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ import { InputComponent } from '@ir-engine/spatial/src/input/components/InputCom
3838
import { ColliderComponent } from '@ir-engine/spatial/src/physics/components/ColliderComponent'
3939
import { RigidBodyComponent } from '@ir-engine/spatial/src/physics/components/RigidBodyComponent'
4040
import { RendererState } from '@ir-engine/spatial/src/renderer/RendererState'
41-
import { RendererComponent } from '@ir-engine/spatial/src/renderer/WebGLRendererSystem'
41+
import { RendererComponent } from '@ir-engine/spatial/src/renderer/components/RendererComponent'
4242
import { SceneComponent } from '@ir-engine/spatial/src/renderer/components/SceneComponents'
4343
import { VisibleComponent } from '@ir-engine/spatial/src/renderer/components/VisibleComponent'
4444
import {
4545
MaterialInstanceComponent,
4646
MaterialStateComponent
4747
} from '@ir-engine/spatial/src/renderer/materials/MaterialComponent'
48-
import { computeTransformMatrix } from '@ir-engine/spatial/src/transform/systems/TransformSystem'
48+
// TransformComponent is already imported above
4949
import React, { useEffect } from 'react'
5050
import { Cache, Color, Euler, MathUtils, Matrix4, MeshLambertMaterial, Quaternion, Vector3 } from 'three'
5151
import { Transform } from './utils/transform'
@@ -196,7 +196,7 @@ const SceneReactor = (props: { coord: Vector3 }) => {
196196
rotation: new Quaternion(),
197197
scale: new Vector3(0.5, 0.5, 0.5)
198198
})
199-
computeTransformMatrix(gltfEntity)
199+
TransformComponent.computeTransformMatrix(gltfEntity)
200200

201201
// apply transform state
202202
const transformComponent = getComponent(gltfEntity, TransformComponent)
@@ -207,7 +207,7 @@ const SceneReactor = (props: { coord: Vector3 }) => {
207207
transformComponent.rotation,
208208
transformComponent.scale
209209
)
210-
computeTransformMatrix(gltfEntity)
210+
TransformComponent.computeTransformMatrix(gltfEntity)
211211
}, [transform.position, transform.rotation, transform.scale])
212212

213213
useEffect(() => {

0 commit comments

Comments
 (0)