auto-git:
[change] src/runtime-three/runtime-host.ts [change] tests/unit/runner-canvas.test.tsx
This commit is contained in:
@@ -4649,7 +4649,10 @@ export class RuntimeHost {
|
||||
this.renderer.autoClear = previousAutoClear;
|
||||
};
|
||||
|
||||
private applyTeleportPlayerAction(target: RuntimeTeleportTarget) {
|
||||
private applyTeleportPlayerAction(target: {
|
||||
position: RuntimeTeleportTarget["position"];
|
||||
yawDegrees: number;
|
||||
}) {
|
||||
if (this.activeController === this.thirdPersonController) {
|
||||
this.thirdPersonController.teleportTo(target.position, target.yawDegrees);
|
||||
return;
|
||||
|
||||
@@ -29,6 +29,7 @@ function createSwimmingTelemetry(
|
||||
return {
|
||||
feetPosition: { x: 0, y: 0, z: 0 },
|
||||
eyePosition: { x: 0, y: cameraSubmerged ? 0.4 : 1.7, z: 0 },
|
||||
yawDegrees: 0,
|
||||
grounded: false,
|
||||
locomotionState: {
|
||||
locomotionMode: "swimming",
|
||||
|
||||
Reference in New Issue
Block a user