mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
make collision polygons a tiny bit wider to protect against gaps (from ynjh_jo)
This commit is contained in:
parent
bf7eac8263
commit
788609a4e0
@ -143,7 +143,7 @@ flush_level() {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE bool CollisionPolygon::
|
||||
is_right(const LVector2f &v1, const LVector2f &v2) {
|
||||
return (v1[0] * v2[1] - v1[1] * v2[0]) > 0;
|
||||
return (v1[0] * v2[1] - v1[1] * v2[0]) > 1.0e-6f;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user