auto-git:

[change] src/runtime-three/runtime-host.ts
 [change] tests/unit/runner-canvas.test.tsx
This commit is contained in:
2026-04-25 03:57:48 +02:00
parent b8e4bd89fa
commit 9e224a4740
2 changed files with 5 additions and 1 deletions

View File

@@ -4649,7 +4649,10 @@ export class RuntimeHost {
this.renderer.autoClear = previousAutoClear; this.renderer.autoClear = previousAutoClear;
}; };
private applyTeleportPlayerAction(target: RuntimeTeleportTarget) { private applyTeleportPlayerAction(target: {
position: RuntimeTeleportTarget["position"];
yawDegrees: number;
}) {
if (this.activeController === this.thirdPersonController) { if (this.activeController === this.thirdPersonController) {
this.thirdPersonController.teleportTo(target.position, target.yawDegrees); this.thirdPersonController.teleportTo(target.position, target.yawDegrees);
return; return;

View File

@@ -29,6 +29,7 @@ function createSwimmingTelemetry(
return { return {
feetPosition: { x: 0, y: 0, z: 0 }, feetPosition: { x: 0, y: 0, z: 0 },
eyePosition: { x: 0, y: cameraSubmerged ? 0.4 : 1.7, z: 0 }, eyePosition: { x: 0, y: cameraSubmerged ? 0.4 : 1.7, z: 0 },
yawDegrees: 0,
grounded: false, grounded: false,
locomotionState: { locomotionState: {
locomotionMode: "swimming", locomotionMode: "swimming",