Repository navigation
feat(interaction): implementa mouse picking 3D com raycasting (closes… - #47
Merged
Merged
Conversation
PedroAugusto08
enabled auto-merge
September 10, 2026 02:06
Co-authored-by: PedroAugusto08 <162599754+PedroAugusto08@users.noreply.github.com>
…-dependency Declare Pillow in runtime dependencies to unblock pytest collection in CI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 Descrição das Alterações
Implementa o sistema de Mouse Picking 3D da Issue #27, permitindo converter a posição 2D do cursor em um raio no espaço do mundo e identificar o primeiro voxel atingido no terreno.
O sistema utiliza unprojection com as matrizes reais de Projection, View e transformação do mundo, seguido de travessia voxel com 3D DDA (Amanatides & Woo).
Principais alterações:
RayeRayHit;VoxelGridProvider;Também foi corrigido um bug preexistente no pan da câmera: o
targetera atualizado simultaneamente pelo pan manual e pelo follow automático do token, causando saltos durante o arraste. O pan agora preserva a altura atual dotargete o follow é suspenso enquanto o usuário está arrastando a câmera.Pipeline
Mouse 2D → NDC → Unprojection → Ray → 3D DDA → VoxelGridProvider → RayHitValidação
pytest -v: 399 passed, 3 skippedpython src/main.py --terrain --seed 1Shift + LMBe MMBgit diff --check: sem erros🔗 Issue Vinculada
Closes #27