瀏覽代碼

Revert "Make the project compilable"

This reverts commit bc6df5d41aedbdd6ee32a57683ecef82f3adc86f.
DricomDragon 4 年之前
父節點
當前提交
9d29bec794
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      Car.cpp

+ 1 - 4
Car.cpp

@@ -92,12 +92,9 @@ void Car::jump( float correction )
 {
      // Jump
      b2Vec2 spring;
-     b2Vec2 forcePoint;
-
      spring.Set( 0.0f, -1.7f );
-     forcePoint.Set( 0.0f, 0.0f );
 
-     m_bodyCar->ApplyLinearImpulse( spring, forcePoint, true );
+     m_bodyCar->ApplyLinearImpulseToCenter( spring, true );
 
      // Correction
      m_bodyCar->ApplyAngularImpulse( - m_bodyCar->GetAngle() * correction, true );