Skip to content

Commit 3b8499c

Browse files
authored
Fix material friction being ignore when parsing URDF/MJCF files. (#1501)
1 parent bbf905d commit 3b8499c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

genesis/engine/entities/rigid_entity/rigid_entity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,9 +763,9 @@ def _add_by_info(self, l_info, j_infos, g_infos, morph, surface):
763763

764764
# Add collision geometries
765765
for g_info in cg_infos:
766-
friction = g_info.get("friction", self.material.friction)
766+
friction = self.material.friction
767767
if friction is None:
768-
friction = gu.default_friction()
768+
friction = g_info.get("friction", gu.default_friction())
769769
link._add_geom(
770770
mesh=g_info["mesh"],
771771
init_pos=g_info.get("pos", gu.zero_pos()),

0 commit comments

Comments
 (0)