Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player hitbox fixes #3382

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

AreaDenial
Copy link

@AreaDenial AreaDenial commented May 19, 2024

Initialize width and height on the bot entity during login
Add eyeHeight property to the bot entity, which updates on crouch/uncrouch
Change raytracing and visibility functions to use bot.entity.eyeHeight instead of bot.entity.height

Replace raytrace start position with bot.entity.eyeHeight
Remove old fix for player hitbox height
Set raytrace start position to bot.entity.eyeHeight
Minor typo in comment lol
Change lookAt start position to use bot.entity.eyeHeight
Change canSeeBlock to use bot.entity.eyeHeight
Update player height on crouch/uncrouch
@AreaDenial AreaDenial marked this pull request as ready for review May 19, 2024 19:25
Initialize bot.entity.height and bot.entity.width on login
Initialize bot entity eyeHeight on login
@extremeheat
Copy link
Member

extremeheat commented Jun 1, 2024

Alot of this entity logic should really be moved to prismarine-entity I think over the messy dynamic object extension code at the moment in entity.js. But the present PR seems to be ok.

@rom1504 rom1504 added this to Needs triage in PR Triage Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
PR Triage
  
Needs triage
Development

Successfully merging this pull request may close these issues.

None yet

2 participants