Forums WoW Modding Support Archives Azerothcore Discord Archives [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?

[DiscordArchive] Is this caused by hitting the red wall next to you or the blue one infront of you?

rektbyfaith
Administrator
0
02-23-2025, 08:06 PM
#1
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&]
rektbyfaith
02-23-2025, 08:06 PM #1

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&]

rektbyfaith
Administrator
0
02-23-2025, 08:06 PM
#2
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&]

[Image: image.png?ex=690c5713&is=690b0593&hm=7b2...89ef8073e&]
rektbyfaith
02-23-2025, 08:06 PM #2

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&]

[Image: image.png?ex=690c5713&is=690b0593&hm=7b2...89ef8073e&]

rektbyfaith
Administrator
0
02-23-2025, 08:07 PM
#3
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.
rektbyfaith
02-23-2025, 08:07 PM #3

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.

rektbyfaith
Administrator
0
02-23-2025, 08:31 PM
#4
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.
rektbyfaith
02-23-2025, 08:31 PM #4

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.

rektbyfaith
Administrator
0
02-23-2025, 08:31 PM
#5
Archived author: walkline • Posted: 2025-02-23T20:31:50.958000+00:00
Original source

But still there is such edge case
example.mp4
rektbyfaith
02-23-2025, 08:31 PM #5

Archived author: walkline • Posted: 2025-02-23T20:31:50.958000+00:00
Original source

But still there is such edge case
example.mp4

rektbyfaith
Administrator
0
02-23-2025, 08:34 PM
#6
Archived author: walkline • Posted: 2025-02-23T20:34:48.347000+00:00
Original source

It would probably be fixed by decreasing the sphere radius.
rektbyfaith
02-23-2025, 08:34 PM #6

Archived author: walkline • Posted: 2025-02-23T20:34:48.347000+00:00
Original source

It would probably be fixed by decreasing the sphere radius.

rektbyfaith
Administrator
0
02-23-2025, 08:37 PM
#7
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?
rektbyfaith
02-23-2025, 08:37 PM #7

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?

rektbyfaith
Administrator
0
02-23-2025, 08:37 PM
#8
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.
rektbyfaith
02-23-2025, 08:37 PM #8

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.

rektbyfaith
Administrator
0
02-23-2025, 08:47 PM
#9
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.
rektbyfaith
02-23-2025, 08:47 PM #9

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.

Recently Browsing
 
Recently Browsing