[DiscordArchive] Is this caused by hitting the red wall next to you or the blue one infront of you?
[DiscordArchive] Is this caused by hitting the red wall next to you or the blue one infront of you?
![[Image: image.png?ex=690c5710&is=690b0590&hm=038...de05009bb&]](https://cdn.discordapp.com/attachments/284323424032129024/1343313097766731827/image.png?ex=690c5710&is=690b0590&hm=03800806cb751b2a8904c77d8d709a189b55f0de94d0441d0b268c0de05009bb&)
Archived author: Pursche • Posted: 2025-02-23T20:06:40.122000+00:00
Original source
Is this caused by hitting the red wall next to you or the blue one infront of you?
![[Image: image.png?ex=690c5710&is=690b0590&hm=038...de05009bb&]](https://cdn.discordapp.com/attachments/284323424032129024/1343313097766731827/image.png?ex=690c5710&is=690b0590&hm=03800806cb751b2a8904c77d8d709a189b55f0de94d0441d0b268c0de05009bb&)
![[Image: image.png?ex=690c5712&is=690b0592&hm=a56...d9c3a57a8&]](https://cdn.discordapp.com/attachments/284323424032129024/1343313109904785438/image.png?ex=690c5712&is=690b0592&hm=a569d0ddf6d24ed474e343fdb2253cfc11b833ac605ed8450d02458d9c3a57a8&)
![[Image: image.png?ex=690c5713&is=690b0593&hm=7b2...89ef8073e&]](https://cdn.discordapp.com/attachments/284323424032129024/1343313110127345814/image.png?ex=690c5713&is=690b0593&hm=7b2333a3a0427aedb439e8db66315bb211706940c1fd56bfc8ead1289ef8073e&)
Archived author: walkline • Posted: 2025-02-23T20:06:43.057000+00:00
Original source
Here is how it solves it.
![[Image: image.png?ex=690c5712&is=690b0592&hm=a56...d9c3a57a8&]](https://cdn.discordapp.com/attachments/284323424032129024/1343313109904785438/image.png?ex=690c5712&is=690b0592&hm=a569d0ddf6d24ed474e343fdb2253cfc11b833ac605ed8450d02458d9c3a57a8&)
![[Image: image.png?ex=690c5713&is=690b0593&hm=7b2...89ef8073e&]](https://cdn.discordapp.com/attachments/284323424032129024/1343313110127345814/image.png?ex=690c5713&is=690b0593&hm=7b2333a3a0427aedb439e8db66315bb211706940c1fd56bfc8ead1289ef8073e&)
Archived author: Pursche • Posted: 2025-02-23T20:07:17.131000+00:00
Original source
I can't tell if that angle is the side of the pillar, the red line, or the wall infront of you.
Archived author: walkline • Posted: 2025-02-23T20:31:30.349000+00:00
Original source
It seems that was caused by my changes in an attempt to fix the first issue. I reverted my changes (including the height offset) and moved the sphere up by its radius.
Archived author: walkline • Posted: 2025-02-23T20:31:50.958000+00:00
Original source
But still there is such edge case
example.mp4
Archived author: walkline • Posted: 2025-02-23T20:34:48.347000+00:00
Original source
It would probably be fixed by decreasing the sphere radius.
Archived author: Pursche • Posted: 2025-02-23T20:37:10.122000+00:00
Original source
This visualization, is the red sphere the actual position being returned from GetAccurateHeight?
Archived author: Pursche • Posted: 2025-02-23T20:37:56.347000+00:00
Original source
Are you sure the triangle intersecting the red sphere is a part of the std::vector of triangles being tested against? I would expect that triangle to push the sphere out of the wall in either direction, if it's the wrong one maybe the triangle winding order needs to be swapped when calculating the triangle normal.
Archived author: walkline • Posted: 2025-02-23T20:47:41.012000+00:00
Original source
Oh no, in this particular visualization, it's the desired by Blink player’s location, without moving the sphere by its radius. The green one is the final position.
I'm using the old Blink implementation but adjusting/normalizing the final destination with your suggested implementation.
It seems that the original Blink implementation chose the wrong surface, possibly due to the weird angle of that wall.