]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
NudgeOutOfSolid: fix "random" failures on slightly inclined planes
authorbones_was_here <bones_was_here@xonotic.au>
Sat, 15 Jul 2023 12:27:42 +0000 (22:27 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sat, 15 Jul 2023 12:27:42 +0000 (22:27 +1000)
commit7c82443dc33d8bca7b904e131033bb312c800d1a
tree028f04b8665e103763e7811fa7f561f23b72ec1b
parenteb6f0e98a7c0e1bcb0e9294a21cf61ac5825cd31
NudgeOutOfSolid: fix "random" failures on slightly inclined planes

History:
This epsilon value was first added to the nudge distance in
31e7715cffcebfd400b8473f3b2d3dc80937fc5a
and was replaced with bbox expansion in
25c09ca585e81bf9eb236a339ae5dcd64f63b679

With the expansion approach we need to compare to separation to make
"good location" detection reliable, partly to avoid float precision
problems, partly to avoid compatibility problems with normal TraceBox.
For example: we drop an entity to floor successfully with TraceBox, but
then NudgeOutOfSolid decides it's in solid.

Also updated the startsolid conditions to suit the 2-pass approach.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
phys.c