Pull Request
Big thanks to dpJudas and Gutawer for helping me with this.
Finally, now you can test and see if a vector is inside the map or in the void. See the example below.
IsPointInMap - Void Testing Solution
Moderator: GZDoom Developers
- Major Cooke
- Posts: 8170
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
IsPointInMap - Void Testing Solution
- Attachments
-
- test.pk3
- Prints a message every second: "in map" or "in void" based on if inside level geometry. Noclip outside the map to test.
- (470 Bytes) Downloaded 57 times
Re: IsPointInMap - Void Testing Solution
Saved me the trouble of (eventually) getting around to it.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49056
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: IsPointInMap - Void Testing Solution
Why is this using an internal function of the node builder?
- Major Cooke
- Posts: 8170
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: IsPointInMap - Void Testing Solution
I didn't know how to use the other versions of the function properly since they involved nodes.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49056
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: IsPointInMap - Void Testing Solution
The main issue here is that the semantics of this function are not the same as of P_PointOnSide or P_PointOnDivLineside because it has to consider the special needs of the node builder. Please rewrite this to use P_PointOnDivLineSide. It may need a bit more setup but is the better choice here.