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;
|
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;
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user