Skip to content

Commit b6e403a

Browse files
committed
Exclude fixed links from interaction
1 parent a3c36c4 commit b6e403a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

genesis/ext/pyrender/interaction/viewer_interaction.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,7 @@ def raycast_against_entity_obb(self, entity: RigidEntity, ray: Ray) -> RayHit:
212212
else:
213213
closest_hit = RayHit.no_hit()
214214
for link in entity.links:
215-
# how to check if the link is dynamic ??
216-
if 0.0 < link.get_mass():
215+
if not link.is_fixed:
217216
for geom in link.geoms:
218217
obb: OBB = self._get_geom_placeholder_obb(geom)
219218
ray_hit = obb.raycast(ray)

0 commit comments

Comments
 (0)