Skip to content

Commit

Permalink
fix unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
erincatto committed Feb 5, 2025
1 parent 8b7113d commit 2cb6aea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/world.c
Original file line number Diff line number Diff line change
Expand Up @@ -2576,7 +2576,10 @@ b2Vec2 b2World_MoveCharacter( b2WorldId worldId, const b2ShapeProxy* shapeProxy,

b2AABB aabb = b2ComputerShapeBounds( shapeProxy, originTransform );
b2CharacterCallbackContext context = {
world, filter, *shapeProxy, originTransform,
world,
filter,
*shapeProxy,
originTransform,
};

for ( int i = 0; i < b2_bodyTypeCount; ++i )
Expand All @@ -2586,7 +2589,7 @@ b2Vec2 b2World_MoveCharacter( b2WorldId worldId, const b2ShapeProxy* shapeProxy,
B2_UNUSED( treeResult );
}

return originTransform.p;
return b2Add( originTransform.p, translation );
}

#if 0
Expand Down

0 comments on commit 2cb6aea

Please sign in to comment.