Refactor: Improve type safety and readability across entity and player start logic

This commit is contained in:
2026-04-27 15:54:04 +02:00
parent 1d53f03fec
commit d09c550ffe
4 changed files with 436 additions and 171 deletions

View File

@@ -5662,17 +5662,13 @@ export class RuntimeHost {
z: this.cameraForward.z
}
: {
x:
Math.sin(
(this.currentPlayerControllerTelemetry.yawDegrees * Math.PI) /
180
),
x: Math.sin(
(this.currentPlayerControllerTelemetry.yawDegrees * Math.PI) / 180
),
y: 0,
z:
Math.cos(
(this.currentPlayerControllerTelemetry.yawDegrees * Math.PI) /
180
)
z: Math.cos(
(this.currentPlayerControllerTelemetry.yawDegrees * Math.PI) / 180
)
};
return this.interactionSystem.resolveClickInteractionPrompt(