From 58ca210c0bef6b4dd5c965a98feaef948714ee52 Mon Sep 17 00:00:00 2001 From: HexaField Date: Fri, 24 May 2024 17:06:47 +1000 Subject: [PATCH] splines --- examples/Splines.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/Splines.tsx b/examples/Splines.tsx index c251689..d7b9fd1 100644 --- a/examples/Splines.tsx +++ b/examples/Splines.tsx @@ -13,6 +13,7 @@ import { VisibleComponent } from '@etherealengine/spatial/src/renderer/component import { TransformComponent } from '@etherealengine/spatial/src/transform/components/TransformComponent' import { BoxGeometry, Mesh, MeshBasicMaterial, Quaternion, SphereGeometry, Vector3 } from 'three' import { Template } from './utils/template' +import { NodeID } from '@etherealengine/spatial/src/transform/components/NodeIDComponent' const createSpline = (index = 0) => { const entity = createEntity() @@ -61,14 +62,14 @@ export default function Splines() { } setComponent(trackEntity, SplineTrackComponent, { - splineEntityUUID: `Spline: 0` as EntityUUID, + splineNodeID: `Spline: 0` as NodeID, velocity: 5 }) setInterval(() => { const spline = Math.floor(Math.random() * 4) setComponent(trackEntity, SplineTrackComponent, { - splineEntityUUID: `Spline: ${spline}` as EntityUUID + splineNodeID: `Spline: ${spline}` as NodeID }) }, 5000) }, [])