Skip to content

Commit 02449b8

Browse files
paLeziartPierre-Alexandre Leziart
andauthored
[BugFix] Fix setters for root linear and angular velocities (#1248)
Co-authored-by: Pierre-Alexandre Leziart <[email protected]>
1 parent cffb149 commit 02449b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mani_skill/utils/structs/articulation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ def root_angular_velocity(self, arg1: Array) -> None:
824824
arg1 = common.to_tensor(arg1, device=self.device)
825825
self.px.cuda_rigid_body_data.torch()[
826826
self.root._body_data_index[self.scene._reset_mask[self._scene_idxs]],
827-
7:10,
827+
10:13,
828828
] = arg1
829829
else:
830830
arg1 = common.to_numpy(arg1)
@@ -842,7 +842,7 @@ def root_linear_velocity(self, arg1: Array) -> None:
842842
arg1 = common.to_tensor(arg1, device=self.device)
843843
self.px.cuda_rigid_body_data.torch()[
844844
self.root._body_data_index[self.scene._reset_mask[self._scene_idxs]],
845-
10:13,
845+
7:10,
846846
] = arg1
847847
else:
848848
arg1 = common.to_numpy(arg1)

0 commit comments

Comments
 (0)