@@ -3,10 +3,12 @@ import { UserID } from '@ir-engine/common/src/schema.type.module'
33import {
44 Engine ,
55 Entity ,
6+ EntityTreeComponent ,
67 EntityUUID ,
78 UUIDComponent ,
89 createEntity ,
910 getComponent ,
11+ removeEntityNodeRecursively ,
1012 setComponent ,
1113 useComponent ,
1214 useOptionalComponent
@@ -23,12 +25,8 @@ import { useHookstate } from '@ir-engine/hyperflux'
2325import { NetworkObjectComponent } from '@ir-engine/network'
2426import { TransformComponent } from '@ir-engine/spatial'
2527import { RigidBodyComponent } from '@ir-engine/spatial/src/physics/components/RigidBodyComponent'
26- import { Object3DComponent } from '@ir-engine/spatial/src/renderer/components/Object3DComponent '
28+ import { ObjectComponent } from '@ir-engine/spatial/src/renderer/components/ObjectComponent '
2729import { VisibleComponent , setVisibleComponent } from '@ir-engine/spatial/src/renderer/components/VisibleComponent'
28- import {
29- EntityTreeComponent ,
30- removeEntityNodeRecursively
31- } from '@ir-engine/spatial/src/transform/components/EntityTree'
3230import React , { useEffect } from 'react'
3331import { Group , MathUtils , Quaternion , Vector3 } from 'three'
3432import {
@@ -191,7 +189,7 @@ const AvatarIKSetupReactor = (props: {
191189 const uuid = MathUtils . generateUUID ( )
192190 setComponent ( entity , UUIDComponent , uuid as EntityUUID )
193191 setComponent ( entity , EntityTreeComponent , { parentEntity : rootEntity } )
194- setComponent ( entity , Object3DComponent , obj3d )
192+ setComponent ( entity , ObjectComponent , obj3d )
195193 setComponent ( entity , TransformComponent , { position } )
196194 setComponent ( entity , VisibleComponent , true )
197195 setComponent ( entity , RigidBodyComponent , { type : 'kinematic' } )
0 commit comments