[DiscordArchive] What do you need this for anyway kaev?
[DiscordArchive] What do you need this for anyway kaev?
Archived author: Kaev • Posted: 2022-11-13T21:15:51.288000+00:00
Original source
me after i quickly adding the aabb check and it didnt work
Archived author: Pursche • Posted: 2022-11-13T21:17:04.848000+00:00
Original source
Lol
Archived author: Pursche • Posted: 2022-11-13T21:17:27.930000+00:00
Original source
Gotta leave the train soon, will check up on this in 15-20 mins or so
Archived author: Pursche • Posted: 2022-11-13T21:18:40.037000+00:00
Original source
But you can google "2d aabb vs point test" if you want, it should be pretty straight forward
Archived author: Pursche • Posted: 2022-11-13T21:18:40.948000+00:00
Original source
The selection box is your 2d aabb, the screenpos is your 2d point
Archived author: Kaev • Posted: 2022-11-13T21:18:47.894000+00:00
Original source
<@149273370838433793> you seem to understand Pursche's magic, your turn now
Archived author: Kaev • Posted: 2022-11-13T21:19:01.138000+00:00
Original source
will do
Archived author: Kaev • Posted: 2022-11-13T21:19:25.379000+00:00
Original source
if (p.x >= wall.x
&& p.x <= wall.x + wall.width
&& p.y >= wall.y
&& p.y <= wall.y + wall.height){
//Collision detected!
}
Archived author: Kaev • Posted: 2022-11-13T21:19:32.775000+00:00
Original source
wall = my object, i guess
Archived author: Kaev • Posted: 2022-11-13T21:20:12.806000+00:00
Original source
oh no, wall = selection rectangle