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

Always use the renderViewEntity for relative coordinates #3041

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ZacSharp
Copy link
Collaborator

I also thought about doing it for a few other things that happen relative to the player like #tunnel or #thisway and decided against it, keeping an explicit distinction rather than "here it makes sense to do it relative to the camera but not there".

…ntity

Also added a new helper method to IPlayerContext to retrieve the view position and change existing uses of the view position to use the new method.
@leijurv
Copy link
Member

leijurv commented Oct 25, 2021

For many of these yeah, but I'm not sure about all.

The point of #come was that that's what you use for freecam, while #goal was meant to be the player itself.

@ZacSharp
Copy link
Collaborator Author

I made this to make the behaviour of relative coordinates consistent, but if you want I can revert it for things like #goal. Just tell me which you don't want to use the camera position.

I also thought about letting the user decide by adding another type of coordinate, but I'm not really a fan of it.

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.

2 participants