mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: increase default "extra" ray trace offset
Results in many more accurate links and prevents most that are technically valid from being dropped. This seems to be the best value during all tests.
This commit is contained in:
parent
e69e960c78
commit
e7240e5551
@ -285,7 +285,15 @@ void Editor::resetCommonSettings()
|
||||
// https://developer.valvesoftware.com/wiki/Pl/Dimensions
|
||||
m_agentMaxSlope = 45.573f;
|
||||
|
||||
m_traverseRayExtraOffset = 8.0f;
|
||||
// note(amos): even though the slope-based ledge offset calculation yields
|
||||
// very accurate results, in practice the ledge spans are sporadic causing the
|
||||
// ray to intersect with geometry while in-game the NPC would've been able to
|
||||
// traverse the portal perfectly without clipping into anything. To accommodate
|
||||
// for irregularities around more complex geometry, we enforce a default offset.
|
||||
// This extra offset is added on top of the ledge span amount which is used to
|
||||
// calculate the total ray offset. Therefore, this won't cause links with a
|
||||
// lower slope to clip into geometry unless this is being set very high (>40.0).
|
||||
m_traverseRayExtraOffset = 20.0f;
|
||||
m_traverseEdgeMinOverlap = RD_EPS;
|
||||
|
||||
m_regionMinSize = 4;
|
||||
|
Loading…
x
Reference in New Issue
Block a user