From 7302d979dc4358d254ae0db72a582e464caf7997 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Wed, 3 Jun 2015 17:04:29 +0200 Subject: [PATCH] Use the right offset for object collision after Polygon collision was fixed Contributes to #35 --- cura/PlatformPhysics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/PlatformPhysics.py b/cura/PlatformPhysics.py index 8ddf206aea..c52e8a9174 100644 --- a/cura/PlatformPhysics.py +++ b/cura/PlatformPhysics.py @@ -80,8 +80,8 @@ class PlatformPhysics: if overlap is None: continue - move_vector.setX(-overlap[0]) - move_vector.setZ(-overlap[1]) + move_vector.setX(overlap[0] * 1.1) + move_vector.setZ(overlap[1] * 1.1) if move_vector != Vector(): op = PlatformPhysicsOperation.PlatformPhysicsOperation(node, move_vector)