Skip to content

Commit

Permalink
Merge pull request #195 from aaronorosen2/warning
Browse files Browse the repository at this point in the history
Fix  ‘up_dir’ set but not used
  • Loading branch information
logzero authored May 30, 2023
2 parents 8fc6bdc + dbe22fe commit 8bf6747
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/physics/cardynamics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,6 @@ bool CarDynamics::WheelContactCallback(
const btCollisionShape * root_shape = obj0->getCollisionShape();
const btCompoundShape * car_shape = static_cast<const btCompoundShape *>(root_shape);
const btCylinderShapeX * wheel_shape = static_cast<const btCylinderShapeX *>(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
Expand Down

0 comments on commit 8bf6747

Please sign in to comment.