Page 1 of 1

LevelLocals vec2/3Offset(Z) functions

Posted: Mon Apr 16, 2018 3:48 pm
by Gutawer
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.

Re: LevelLocals vec2/3Offset(Z) functions

Posted: Wed Apr 18, 2018 3:28 pm
by Major Cooke
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

Posted: Mon Apr 23, 2018 1:09 pm
by Gutawer
Bumping since this hasn't gotten any attention, I need this for something I'm working on currently.

Re: LevelLocals vec2/3Offset(Z) functions

Posted: Tue May 15, 2018 1:24 pm
by Gutawer
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.

Re: LevelLocals vec2/3Offset(Z) functions

Posted: Tue May 15, 2018 4:52 pm
by Matt
What's the difference between this and vec2/3diff?

Re: LevelLocals vec2/3Offset(Z) functions

Posted: Wed May 16, 2018 1:38 am
by Gutawer
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.

Re: LevelLocals vec2/3Offset(Z) functions

Posted: Wed May 16, 2018 11:41 am
by Matt
Understood.

Yes this would be very useful.