mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 07:02:23 +01:00
Collision temporary fix for issue #6886
This commit is contained in:
parent
60544ac56f
commit
908e762479
@ -415,12 +415,11 @@ collisionMoveResult collisionMoveSimple(Environment *env, IGameDef *gamedef,
|
|||||||
Collision uncertainty radius
|
Collision uncertainty radius
|
||||||
Make it a bit larger than the maximum distance of movement
|
Make it a bit larger than the maximum distance of movement
|
||||||
*/
|
*/
|
||||||
f32 d = pos_max_d * 1.1f;
|
//f32 d = pos_max_d * 1.1f;
|
||||||
// A fairly large value in here makes moving smoother
|
|
||||||
//f32 d = 0.15*BS;
|
|
||||||
|
|
||||||
// This should always apply, otherwise there are glitches
|
f32 d = 0.01f; // Temporary fix, any nonzero d causes collision glitches, the more the greater it is.
|
||||||
assert(d > pos_max_d); // invariant
|
// ultimately it has to be determined if any uncertainty is involved, and if it is, eliminated
|
||||||
|
// and d & pos_max_d params removed from function calls.
|
||||||
|
|
||||||
int loopcount = 0;
|
int loopcount = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user