Skip to content

Fix preview coordinate debug display updates#240

Open
JeremyZeng77 wants to merge 1 commit into
hytopiagg:mainfrom
JeremyZeng77:codex/fix-preview-coordinate-display
Open

Fix preview coordinate debug display updates#240
JeremyZeng77 wants to merge 1 commit into
hytopiagg:mainfrom
JeremyZeng77:codex/fix-preview-coordinate-display

Conversation

@JeremyZeng77

Copy link
Copy Markdown

Addresses #24

Summary

  • keep the Debug panel's preview position in React state instead of reading the mutable TerrainBuilder ref directly during render
  • update preview and camera position together on animation frames so the coordinate display reflects the latest cursor preview position before any wall placement happens
  • keep coordinate formatting guarded against missing/non-finite values

Verification

  • git diff --check
  • npm run build (passes; existing repository warnings remain, including a missing @mediapipe source map and pre-existing lint warnings outside this change)

Bounty / payout

This issue is not currently labeled BOUNTY, but the repository README describes official paid bug/feature bounties via PayPal for accepted bounty PRs. If this fix qualifies, payout can be sent to PayPal: https://paypal.me/Jeremytsangchina

USDT TRC20 fallback: TWupTAoFjxR2VmqUUvzhfmUwXVZR6Kvz1Y

@vercel

vercel Bot commented May 20, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Hytopia Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant