Skip to content

Commit e6987d2

Browse files
authored
Fix bug where the wrong y coord was used for one corner of the box drawn to represent a box-plane collision. (#6677)
* Fix bug where the wrong y coord was used for one corner of the box drawn to represent a box-plane collision. * Add changelog entry.
1 parent 0a1f1eb commit e6987d2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/reference/changelog-r2024.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ Released on December **th, 2023.
2929
- Fixed crash on macos when closing Webots under some circumstances ([#6635](https://github.com/cyberbotics/webots/pull/6635)).
3030
- Fixed error on macos when when putting displays and cameras in separate windows ([#6635](https://github.com/cyberbotics/webots/pull/6635)).
3131
- Fixed crash when `wb_supervisor_field_get_name` was called with NULL ([#6647](https://github.com/cyberbotics/webots/pull/6647)).
32+
- Fixed bug where the wrong y coordinate was used for one corner of the box drawn to represent a box-plane collision ([#6677](https://github.com/cyberbotics/webots/pull/6677)).

src/webots/app/WbContactPointsRepresentation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ void WbContactPointsRepresentation::updateRendering() {
184184
odeContacts[cg0 + 3].contactGeom().pos[2]);
185185
addVertex(mContactMesh, index++, odeContacts[cg0 + 3].contactGeom().pos[0], odeContacts[cg0 + 3].contactGeom().pos[1],
186186
odeContacts[cg0 + 3].contactGeom().pos[2]);
187-
addVertex(mContactMesh, index++, odeContacts[cg0 + 2].contactGeom().pos[0], odeContacts[cg0 + 1].contactGeom().pos[1],
187+
addVertex(mContactMesh, index++, odeContacts[cg0 + 2].contactGeom().pos[0], odeContacts[cg0 + 2].contactGeom().pos[1],
188188
odeContacts[cg0 + 2].contactGeom().pos[2]);
189-
addVertex(mContactMesh, index++, odeContacts[cg0 + 2].contactGeom().pos[0], odeContacts[cg0 + 1].contactGeom().pos[1],
189+
addVertex(mContactMesh, index++, odeContacts[cg0 + 2].contactGeom().pos[0], odeContacts[cg0 + 2].contactGeom().pos[1],
190190
odeContacts[cg0 + 2].contactGeom().pos[2]);
191191
addVertex(mContactMesh, index++, odeContacts[cg0].contactGeom().pos[0], odeContacts[cg0].contactGeom().pos[1],
192192
odeContacts[cg0].contactGeom().pos[2]);

0 commit comments

Comments
 (0)