So first some background. Im developing a really simple 2D game, in Delphi 10.3, FMX, which at the bottom of the screen draws a random terrain for each level of the game. Anyway, the terrain is just some random numbers which are used in Tpathdata and then i use fillpath to draw this 2d "terrain". I want to check when a "falling" object, a trect for example, intersects with this terrain. My idea was to get all the points of the tpathdata, every Y position of every X position of the screen width. This way i could easily check when an object intersects with the terrain. I just cannout figure the way how to do it, or if anyone has any other solution. Id really appreciate any help. Thanks