Skip to content

Commit 2f95850

Browse files
committed
Check Issue870 symmetry in world frame
1 parent 1df219b commit 2f95850

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integration/simulation/test_Issue870.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,10 @@ TEST(Issue870, RotatedBoxesRemainSymmetricBetweenWeldedStops)
193193
const auto updateStats = [&](const BoxBounceWorld& w) {
194194
const auto lp = w.leftFree->getWorldTransform().translation();
195195
const auto rp = w.rightFree->getWorldTransform().translation();
196-
const auto lv = w.leftFree->getSpatialVelocity();
197-
const auto rv = w.rightFree->getSpatialVelocity();
196+
const auto lv
197+
= w.leftFree->getSpatialVelocity(Frame::World(), Frame::World());
198+
const auto rv
199+
= w.rightFree->getSpatialVelocity(Frame::World(), Frame::World());
198200

199201
maxSymmetryError = std::max(
200202
maxSymmetryError,

0 commit comments

Comments
 (0)