Skip to content

Commit

Permalink
Fix bug where the wrong y coord was used for one corner of the box dr…
Browse files Browse the repository at this point in the history
…awn to represent a box-plane collision. (cyberbotics#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.
  • Loading branch information
brettle authored Oct 20, 2024
1 parent 0a1f1eb commit e6987d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/reference/changelog-r2024.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ Released on December **th, 2023.
- Fixed crash on macos when closing Webots under some circumstances ([#6635](https://github.com/cyberbotics/webots/pull/6635)).
- Fixed error on macos when when putting displays and cameras in separate windows ([#6635](https://github.com/cyberbotics/webots/pull/6635)).
- Fixed crash when `wb_supervisor_field_get_name` was called with NULL ([#6647](https://github.com/cyberbotics/webots/pull/6647)).
- 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)).
4 changes: 2 additions & 2 deletions src/webots/app/WbContactPointsRepresentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ void WbContactPointsRepresentation::updateRendering() {
odeContacts[cg0 + 3].contactGeom().pos[2]);
addVertex(mContactMesh, index++, odeContacts[cg0 + 3].contactGeom().pos[0], odeContacts[cg0 + 3].contactGeom().pos[1],
odeContacts[cg0 + 3].contactGeom().pos[2]);
addVertex(mContactMesh, index++, odeContacts[cg0 + 2].contactGeom().pos[0], odeContacts[cg0 + 1].contactGeom().pos[1],
addVertex(mContactMesh, index++, odeContacts[cg0 + 2].contactGeom().pos[0], odeContacts[cg0 + 2].contactGeom().pos[1],
odeContacts[cg0 + 2].contactGeom().pos[2]);
addVertex(mContactMesh, index++, odeContacts[cg0 + 2].contactGeom().pos[0], odeContacts[cg0 + 1].contactGeom().pos[1],
addVertex(mContactMesh, index++, odeContacts[cg0 + 2].contactGeom().pos[0], odeContacts[cg0 + 2].contactGeom().pos[1],
odeContacts[cg0 + 2].contactGeom().pos[2]);
addVertex(mContactMesh, index++, odeContacts[cg0].contactGeom().pos[0], odeContacts[cg0].contactGeom().pos[1],
odeContacts[cg0].contactGeom().pos[2]);
Expand Down

0 comments on commit e6987d2

Please sign in to comment.