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

Head rotation (player yaw/pitch) #19

Open
deathcap opened this issue Feb 7, 2016 · 1 comment
Open

Head rotation (player yaw/pitch) #19

deathcap opened this issue Feb 7, 2016 · 1 comment

Comments

@deathcap
Copy link
Member

deathcap commented Feb 7, 2016

Web users can move around the world (position coordinates), but their head direction is not updated:

screen shot 2016-02-06 at 6 04 35 pm

Relevant packets: entity_move_look (x,y,z are handled, but not yaw and pitch), entity_head_rotation (headYaw), position_look (yaw and pitch fields)

Requires wiring up to the voxel.js client camera, may also need changes to mineflayer but should be able to use the bot.look(yaw, pitch, [force], [callback]) API: https://github.com/PrismarineJS/mineflayer/blob/master/doc/api.md#botlookyaw-pitch-force-callback

@deathcap
Copy link
Member Author

deathcap commented Feb 7, 2016

The client does reposition its head, but only to look at the target block when digging (part of mineflayer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant