[DiscordArchive] Doesn't a AABB collision work when i have the 3d selection box by creating it from start drag mouse
[DiscordArchive] Doesn't a AABB collision work when i have the 3d selection box by creating it from start drag mouse
Archived author: Kaev • Posted: 2022-11-13T10:40:10.498000+00:00
Original source
Doesn't a AABB collision work when i have the 3d selection box by creating it from start drag mouse position in world to end drag mouse position in world (calculate it from min(start.x, end.x) to max(start.x, end.x) and for y, z aswell)?
Archived author: Pursche • Posted: 2022-11-13T10:46:06.786000+00:00
Original source
AABB wont be as accurate as an OBB. Sure you can do it in 3d but then you have to figure out how to project the screenspace coords to a 3d box on the plane of the camera that stops where you intersect the terrain, which is far more complicated.
Archived author: Pursche • Posted: 2022-11-13T10:48:13.427000+00:00
Original source
<@138006906915651585> What you just explained doesn't work on all 3 axises. The "depth" axis of the camera needs special treatment, and it will rarely line up to be X, Y or Z.
Archived author: Kaev • Posted: 2022-11-13T10:49:04.697000+00:00
Original source
Why is 3d stuff always so complicated
Archived author: Pursche • Posted: 2022-11-13T10:49:38.962000+00:00
Original source
The first rule of 3d is to simplify the problem to 2d
Archived author: Kaev • Posted: 2022-11-13T10:50:17.185000+00:00
Original source
in 2d aabb would be enough
Archived author: Pursche • Posted: 2022-11-13T10:50:50.097000+00:00
Original source
In 2d, the OBB can be used without much difference
Archived author: Michael Crilly • Posted: 2022-11-13T10:50:57.051000+00:00
Original source
AC Discord is a bit quiet, so figured I'd ask here too.
Any idea why a dialogue isn't opening up when speaking to my NPC? He turns to me, says hello, and I hear the dialogue open sound, but nothing is rendered. I'm also getting log file entries in the console that clearly show that my script is being attached, but it's not going to the primary, first page, but to what seems like a secondary page?
Whilst I'm engaged in "conversation" with him, I get the following in the console log (from my module): ```AC> Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...
Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...
Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...
Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...
Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...
Level Tokens (DEBUGGING): player opted to sell Emblem of Honor for a level...```
Code: https://github.com/mrcrilly/mod-level-to...s.cpp#L119
[Embed: mod-level-tokens/mod_leveltokens.cpp at master · mrcrilly/mod-level...]
Level token system to speed up levelling, if desired. - mod-level-tokens/mod_leveltokens.cpp at master · mrcrilly/mod-level-tokens
https://github.com/mrcrilly/mod-level-to...tokens.cpp
Archived author: Kaev • Posted: 2022-11-13T10:51:47.736000+00:00
Original source
OBB = AABB but can be rotated?
Archived author: Pursche • Posted: 2022-11-13T10:53:45.455000+00:00
Original source
Yes, oriented bounding box.