@@ -38,14 +38,14 @@ import { InputComponent } from '@ir-engine/spatial/src/input/components/InputCom
3838import { ColliderComponent } from '@ir-engine/spatial/src/physics/components/ColliderComponent'
3939import { RigidBodyComponent } from '@ir-engine/spatial/src/physics/components/RigidBodyComponent'
4040import { 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 '
4242import { SceneComponent } from '@ir-engine/spatial/src/renderer/components/SceneComponents'
4343import { VisibleComponent } from '@ir-engine/spatial/src/renderer/components/VisibleComponent'
4444import {
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
4949import React , { useEffect } from 'react'
5050import { Cache , Color , Euler , MathUtils , Matrix4 , MeshLambertMaterial , Quaternion , Vector3 } from 'three'
5151import { 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