Skip to content

Conversation

@allemangD
Copy link

Based on #18. Thanks for fixing support for 1.19.4 @end-user!


Switch to use whatever camera orientation is used in GameRenderer#renderWorld. Fetches the InverseViewRotationMatrix used just before world rendering occurs and computes roll from that.

This enables roll support for mods Cool Elytra Roll and Do a Barrel Roll, and implicitly supports any other mod which changes camera orientation.

Also moves the FlightComputer instance to be public static final FlightHud#computer, since both InGameHudMixin and GameRendererMixin need access and it seems a good place to put the singleton.


Short demo clip, showing a full flip with Do a Barrel Roll, here: https://youtu.be/V4x2M-dlUL0

end-user and others added 4 commits March 13, 2023 13:55
Switch to use whatever camera orientation is used in GameRenderer#renderWorld. Fetches the InverseViewRotationMatrix used just before world rendering occurs.

This enables roll support for mods "Cool Elytra Roll" and "Do a Barrel Roll", and implicitly supports any other mod which changes camera orientation.

Move "FlightComputer" instance to be public static in FlightHud class, since both InGameHudMixin and GameRendererMixin need to access the same instance.
@Merith-TK
Copy link

Bumping as I would love this

@HuJK
Copy link

HuJK commented Aug 26, 2023

love this, when can we merge this PR?

@hutonahill
Copy link

why hasn't this been merged yet? it seems like an epic feature!

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.

5 participants