Clear_lines() and WireframeSphereGeometry()


currently, I am moving the sphere created with WireframeSphereGeometry() like this :

draw_lines(gymutil.draw_lines(self.sphere_geom, self.gym, self.viewer, self.envs[i], gymapi.Transform(p=sphere_pos )))

where I can change the sphere_pos to move the spheres. However, the old/past spheres remain in the environment, so I need to clear the old sphere using clear_lines() before I place them at a new position. Is there a way to selectively clear one spheres rather than clearing the whole spheres as clear_lines() does?

Hi @haraaald45,

Unfortunately there is no way for selective line clean-up. You need to draw lines every frame if clear_lines() was called.