From dbe22fe8996ad826be8dbc14ff085c276bbed07e Mon Sep 17 00:00:00 2001 From: Aaron Rosen Date: Wed, 24 May 2023 16:04:24 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20=20=E2=80=98up=5Fdir=E2=80=99=20set=20but?= =?UTF-8?q?=20not=20used?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/physics/cardynamics.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/physics/cardynamics.cpp b/src/physics/cardynamics.cpp index ecfe69fa..ef86ef74 100644 --- a/src/physics/cardynamics.cpp +++ b/src/physics/cardynamics.cpp @@ -1932,7 +1932,6 @@ bool CarDynamics::WheelContactCallback( const btCollisionShape * root_shape = obj0->getCollisionShape(); const btCompoundShape * car_shape = static_cast(root_shape); const btCylinderShapeX * wheel_shape = static_cast(shape0); - btVector3 up_dir = obj0->getWorldTransform ().getBasis().getColumn(Direction::UP); btVector3 wheel_center = car_shape->getChildTransform(cp.m_index0).getOrigin(); btVector3 contact_vec = wheel_center - cp.m_localPointA; // only invalidate if contact point in the lower quarter of the wheel