We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 19ab4c9 + 172f6ed commit 658e170Copy full SHA for 658e170
genesis/engine/solvers/rigid/contact_island.py
@@ -25,7 +25,9 @@ def __init__(self, collider):
25
dtype=gs.ti_int, shape=self.solver._batch_shape((self.collider._max_contact_pairs))
26
)
27
28
- self.constraint_id = ti.field(dtype=gs.ti_int, shape=self.solver._batch_shape((self.solver.n_entities)))
+ self.constraint_id = ti.field(
29
+ dtype=gs.ti_int, shape=self.solver._batch_shape((self.collider._max_contact_pairs * 2))
30
+ )
31
32
self.entity_edge = struct_agg_list.field(
33
shape=self.solver._batch_shape(self.solver.n_entities), needs_grad=False, layout=ti.Layout.SOA
0 commit comments