Add target anchor setup to runtime interaction system tests

This commit is contained in:
2026-05-11 22:01:33 +02:00
parent fbe81faae2
commit 22cbdd81d2

View File

@@ -11,6 +11,7 @@ import {
createProjectSequence createProjectSequence
} from "../../src/sequencer/project-sequences"; } from "../../src/sequencer/project-sequences";
import { import {
createNpcTargetAnchor,
createPlayerStartInputBindings, createPlayerStartInputBindings,
createPlayerStartMovementTemplate, createPlayerStartMovementTemplate,
DEFAULT_NPC_SCALE, DEFAULT_NPC_SCALE,
@@ -210,6 +211,7 @@ function createRuntimeNpcFixture(options: {
name: undefined, name: undefined,
visible: true, visible: true,
targetable: false, targetable: false,
targetAnchor: createNpcTargetAnchor(),
position, position,
yawDegrees: 0, yawDegrees: 0,
scale: DEFAULT_NPC_SCALE, scale: DEFAULT_NPC_SCALE,
@@ -1185,6 +1187,7 @@ describe("RuntimeInteractionSystem", () => {
name: "Merchant", name: "Merchant",
visible: true, visible: true,
targetable: false, targetable: false,
targetAnchor: createNpcTargetAnchor(),
position: { position: {
x: 0, x: 0,
y: 1, y: 1,