Skip to content

Bias GroundItems to ensure they sit above surfaces#988

Open
RuffledPlume wants to merge 8 commits into117HD:masterfrom
RuffledPlume:TileItemBias
Open

Bias GroundItems to ensure they sit above surfaces#988
RuffledPlume wants to merge 8 commits into117HD:masterfrom
RuffledPlume:TileItemBias

Conversation

@RuffledPlume
Copy link
Contributor

image image

@aHooder
Copy link
Member

aHooder commented Mar 7, 2026

I found a small problem with loot beams, though we could probably just apply the same hack also to these loot beams.
Without model bias:
image
With model bias:
image

@aHooder
Copy link
Member

aHooder commented Mar 7, 2026

The code LGTM, but how was the bias of 125 chosen?

@RuffledPlume
Copy link
Contributor Author

The code LGTM, but how was the bias of 125 chosen?

Most tiles and models have a bias of 1 to 12, that's because they are fixing coplanar triangles, however since this is a problem of items intersecting fully with the terrain and models, it's not a coplanar issue. So I found 125 is around about the amount needed to resolve most issues

@RuffledPlume
Copy link
Contributor Author

This might no longer be needed, Adam fixes a RL bug which improves the cases shown in the OP.
Though it doesnt fix places like the stronghold, so 🤷‍♀️

@Jin-Jiyunsun
Copy link
Contributor

Imo it's worth it

@RuffledPlume
Copy link
Contributor Author

I guess we could detect if the dropped item is on a tile with objects, since that should be the remaining case where it happens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants