Skip to content

Commit

Permalink
Update cloth example with new ModelBuilder coloring API
Browse files Browse the repository at this point in the history
  • Loading branch information
astefanutti committed Dec 3, 2024
1 parent 5707b7a commit 6767c67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion warp/examples/sim/example_cloth.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ def __init__(
tri_ka=1e4,
tri_kd=1e-5,
edge_ke=100,
color_particles=True,
)

usd_stage = Usd.Stage.Open(os.path.join(warp.examples.get_asset_directory(), "bunny.usd"))
Expand All @@ -122,6 +121,9 @@ def __init__(
kf=1.0e1,
)

if self.integrator_type == IntegratorType.VBD:
builder.color()

self.model = builder.finalize()
self.model.ground = True
self.model.soft_contact_ke = 1.0e4
Expand Down

0 comments on commit 6767c67

Please sign in to comment.