Skip to content

Fix passenger positioning during teleportion when SmoothCoasters is active - #21

Merged
56738 merged 1 commit into
bergerhealer:masterfrom
itslilscorp:Issue-18-Teleport-Glitch-Fix
Aug 3, 2026
Merged

Fix passenger positioning during teleportion when SmoothCoasters is active#21
56738 merged 1 commit into
bergerhealer:masterfrom
itslilscorp:Issue-18-Teleport-Glitch-Fix

Conversation

@itslilscorp

Copy link
Copy Markdown
Contributor

Fixes #18

Temporarily applies the player's local look rotation while vanilla calculates getVehicleAttachmentPoint, then restores the composed SmoothCoasters rotation.

This prevents ride vehicle teleports and seat transitions from offsetting the player position while preserving the intended camera and player-facing rotation.

AI was used to create this patch, That said, I've allowed edits by maintainers so feel free to make changes where needed.

…tion is active

Temporarily apply the player's local look rotation while vanilla calculates getVehicleAttachmentPoint, then restore the composed SmoothCoasters rotation.

This prevents ride vehicle teleports and seat transitions from offsetting the player position while preserving the intended camera and player-facing rotation.
@56738
56738 merged commit 7d5d5d8 into bergerhealer:master Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On-ride teleportation can cause the camera to move incorrectly

2 participants