fix is_slope_walkable

This commit is contained in:
Quaternions 2024-09-27 12:34:12 -07:00
parent ba6a2bd670
commit def5497ec1

View File

@ -341,7 +341,7 @@ impl WalkSettings{
let ny=normal.dot(up); let ny=normal.dot(up);
let h=normal.length().fix_1(); let h=normal.length().fix_1();
//remember this is a normal vector //remember this is a normal vector
ny.is_negative()&&h*self.surf_dot<ny ny.is_positive()&&h*self.surf_dot<ny
} }
} }