Skip to content

Commit 379b252

Browse files
committed
Restore car following in "LargeWorld".
1 parent b46efd9 commit 379b252

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

LowLevel/Sandbox/Assets/Scenes/Benchmark/LargeWorld/LargeWorld.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,7 @@ private void SetupOptions()
102102

103103
// If we're no longer following the car then set the current camera position to the car position.
104104
if (!m_FollowCar)
105-
{
106-
//m_CameraPosition = new Vector2(m_FrontWheelJoint.bodyA.position.x, m_CameraPosition.y);
107-
var startX = -0.5f * m_CycleCount * m_WavePeriod;
108-
m_CameraPosition = new Vector2(startX + m_GridCount * m_GridSize, m_CameraPosition.y);
109-
}
105+
m_CameraPosition = new Vector2(m_FrontWheelJoint.bodyA.position.x, m_CameraPosition.y);
110106
});
111107

112108
// Camera Pan Speed.

0 commit comments

Comments
 (0)