Skip to content

Animating mesh in cloth_style3d example #878

@mdeth

Description

@mdeth

Hi team, I am trying to change the vertex positions of the currently static mesh representing a human during the simulation in the example cloth_style3d.
To test this, I currently simply scale it like this at the beginning of simulate():

self.model.shape_source[0].mesh.points *= scale
self.model.shape_source[0].mesh..refit()

The cloth actually seems to be colliding with something becoming increasingly different from the human, but the static human mesh remains static. How can I adjust the static mesh to show the scaled vertices?
Also, how could I copy custom vertex positions for each frame to the human mesh instead of just scaling?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions