Skip to content

selection function - #3673

Open
Wunka wants to merge 1 commit into
PixelGuys:masterfrom
Wunka:selectionFn
Open

Wunka wants to merge 1 commit into
PixelGuys:masterfrom
Wunka:selectionFn

Conversation

@Wunka

@Wunka Wunka commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Second pr created of #3649
Instead of saving the mesh selection in global variables its now in the return struct of the select function

Comment thread src/server/Entity.zig
}
}

pub fn getDirection(_: *const @This(), comptime side: main.sync.Side) Vec3f {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these in server.Entity when they are meant to be side-agnostic?
Also note that server.Entity will probably need to be dissolved in the context of #3241, it would be best to find more suitable for these now instead of making #3241 more difficult.

Also as discussed in the meeting, the crosshair direction should probably be what's sent to the server as a rotation.

As for getSelected, I'd suggest to just change the signature of MeshSelection isntead of making a new helper function.

Comment thread src/renderer.zig
mesh_storage.removeBreakingAnimation(breaking.blockPos);
swinging.currentSwingProgress = 0;
breaking.blockPos = selected.blockPos;
breaking.progress = 0;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this part changed from the previous PR? Mistake in merge conflict resolution?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

2 participants