Skip to content

Commit

Permalink
bug: batch reference to links_info
Browse files Browse the repository at this point in the history
  • Loading branch information
Kashu7100 committed Dec 26, 2024
1 parent 66e3f84 commit 659ad37
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions genesis/engine/entities/rigid_entity/rigid_joint.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ def get_pos(self):

@ti.kernel
def _kernel_get_pos(self, tensor: ti.types.ndarray()):

for i_b in range(self._solver._B):
l_info = self._solver.links_info[self._idx, i_b]
l_info = self._solver.links_info[self._idx]
i_p = l_info.parent_idx

p_pos = ti.Vector.zero(gs.ti_float, 3)
Expand Down Expand Up @@ -122,9 +121,8 @@ def get_quat(self):

@ti.kernel
def _kernel_get_quat(self, tensor: ti.types.ndarray()):

for i_b in range(self._solver._B):
l_info = self._solver.links_info[self._idx, i_b]
l_info = self._solver.links_info[self._idx]
i_p = l_info.parent_idx

p_pos = ti.Vector.zero(gs.ti_float, 3)
Expand Down

0 comments on commit 659ad37

Please sign in to comment.