Selaa lähdekoodia

Merge pull request #236 from AtomicGameEngine/JME-ATOMIC-FIXPHYSICS2DDEFAULTS

Fix PhsycisWorld2D defaults
JoshEngebretson 10 vuotta sitten
vanhempi
sitoutus
60b9e961ca
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      Source/Atomic/Atomic2D/PhysicsWorld2D.cpp

+ 4 - 2
Source/Atomic/Atomic2D/PhysicsWorld2D.cpp

@@ -65,8 +65,10 @@ PhysicsWorld2D::PhysicsWorld2D(Context* context) :
     // Set debug draw
     // Set debug draw
     world_->SetDebugDraw(this);
     world_->SetDebugDraw(this);
 
 
-    world_->SetContinuousPhysics(true);
-    world_->SetSubStepping(true);
+    // BEGIN ATOMIC: These should be false, as per the attribute defaults
+    world_->SetContinuousPhysics(false);
+    world_->SetSubStepping(false);
+    // END ATOMIC
 }
 }
 
 
 PhysicsWorld2D::~PhysicsWorld2D()
 PhysicsWorld2D::~PhysicsWorld2D()