Skip to content

Commit a4bd745

Browse files
authored
Show box-plane contact point normals when showing contact points. (#6678)
* Show box-plane contact point normals when showing contact points. This had been intentionally prevented, but it isn't clear why. I found it confusing that these were missing when I enabled showing contact points.
1 parent c769d75 commit a4bd745

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

docs/reference/changelog-r2024.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Released on December **th, 2023.
1717
- Removed support for Lua as a PROTO scripting language ([#6642](https://github.com/cyberbotics/webots/pull/6642)).
1818
- Enhancements
1919
- Improved the image range of the rotating [Lidar](lidar.md) ([#6324](https://github.com/cyberbotics/webots/pull/6324)).
20+
- Show box-plane contact point normals when showing contact points ([#6678](https://github.com/cyberbotics/webots/pull/6678)).
2021
- Cleanup
2122
- Removed deprecated `windowPosition`, `pixelSize` fields of [Display](display.md) node ([#6327](https://github.com/cyberbotics/webots/pull/6327)).
2223
- Bug Fixes

src/webots/app/WbContactPointsRepresentation.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@ void WbContactPointsRepresentation::updateRendering() {
145145
const double L = 0.2 * world->worldInfo()->lineScale();
146146
for (int i = 0; i < contactSize; ++i) {
147147
const dContactGeom &cg = odeContacts[i].contactGeom();
148-
if (boxVersusPlane(cg.g1, cg.g2))
149-
continue;
150148
const dReal H[3] = {cg.normal[0] * L, cg.normal[1] * L, cg.normal[2] * L};
151149
const dReal *const pos = cg.pos;
152150
addVertex(mContactMesh, index++, pos[0] - H[0], pos[1] - H[1], pos[2] - H[2]);

0 commit comments

Comments
 (0)