fix is_slope_walkable
This commit is contained in:
parent
ba6a2bd670
commit
def5497ec1
@ -341,7 +341,7 @@ impl WalkSettings{
|
||||
let ny=normal.dot(up);
|
||||
let h=normal.length().fix_1();
|
||||
//remember this is a normal vector
|
||||
ny.is_negative()&&h*self.surf_dot<ny
|
||||
ny.is_positive()&&h*self.surf_dot<ny
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user