Skip to content

Commit

Permalink
Fix velocity issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cgokmen committed Feb 13, 2025
1 parent e03d3ed commit ccf015b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omnigibson/prims/cloth_prim.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def reset_points_to_configuration(self, configuration: Literal["default", "settl
attr_name = f"points_{configuration}"
points = self.get_attribute(attr=attr_name)
self.set_attribute(attr="points", val=points)
self.particle_velocities = th.zeros((self._n_particles, 3))
self.set_attribute(attr="velocities", val=lazy.pxr.Vt.Vec3fArray(th.zeros((len(points), 3)).tolist()))

# For cloth, points should NOT be @cached_property because their local poses change over time
@property
Expand Down

0 comments on commit ccf015b

Please sign in to comment.