-
Im dabbling with making a pinball table , right Thing is however, currently; when i try to check if the nearest polygon is within a point, that outright doesnt return anything. Also, somehow doesnt return for triangles themselves created with egpTriangle. Am i tripping or is there no support yet for these yet? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
Outline objects don't work for "point-containing" functions. I don't know why, it's just how it always has been. You might need to share a bit of code, because I don't experience this issue. |
Beta Was this translation helpful? Give feedback.
-
Let me upload it to my repo, then link you here to the file where im actually trying to do it. I think that might be best https://github.com/Zylenxx/Expression2/blob/Concepts/EGP%20Pinball.txt#L456 |
Beta Was this translation helpful? Give feedback.
-
I should add i am doing the check on the triangle, not the polyoutline, the polyoutline was to facilitate the actual visibility of the triangle |
Beta Was this translation helpful? Give feedback.
Uh, in the code your provided, this works for me.
And this simple test code will turn a poly green when you mouse over it.
Updating the triangle every tick to the cursor's position, however, does not work in this method. It's a bug that's resolved in