PR: https://github.com/coelckers/gzdoom/pull/463
For cases where you need to get a position offsetted from a location, have it go through portals, and actors are either not available, such as in UI scope, or impractical for performance reasons, much like the previous vec2/3Diff pull request.
LevelLocals vec2/3Offset(Z) functions
Moderator: GZDoom Developers
- Major Cooke
- Posts: 8175
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: LevelLocals vec2/3Offset(Z) functions
Perhaps exporting all of them like this might be a good idea? That is, if there remains anymore to be done.
Re: LevelLocals vec2/3Offset(Z) functions
Bumping since this hasn't gotten any attention, I need this for something I'm working on currently.
Re: LevelLocals vec2/3Offset(Z) functions
Bumping this again to (hopefully) get a response. I do need this for something I'm working on so I'd appreciate getting an answer.
- Matt
- Posts: 9696
- Joined: Sun Jan 04, 2004 5:37 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Debian Bullseye
- Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
- Contact:
Re: LevelLocals vec2/3Offset(Z) functions
What's the difference between this and vec2/3diff?
Re: LevelLocals vec2/3Offset(Z) functions
That one finds difference between vectors through portals, this one offsets a vector by another through a portal. They're pretty much the reverse of each other.
- Matt
- Posts: 9696
- Joined: Sun Jan 04, 2004 5:37 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Debian Bullseye
- Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
- Contact:
Re: LevelLocals vec2/3Offset(Z) functions
Understood.
Yes this would be very useful.
Yes this would be very useful.