30-01-2019, 09:41 AM
(This post was last modified: 30-01-2019, 09:43 AM by josemendez.)
(30-01-2019, 09:13 AM)Richard Wrote: An error happens. "The variable sharedMesh of ObiCloth has not been assigned. You probably need to assign the sharedMesh variable of the ObiCloth script in the inspector." ,but I cannot find out "sharedMesh", and the plane still is weird shape without any object to collide.
Hi there,
The collider and the cloth must be different objects. You add a ObiCollider component to the collider (the thing you want the cloth to collide with), and a ObiCloth component to the cloth (the deformable mesh). The cloth itself does not need to have any collider component on it for collisions to work.
Here, I recorded a video for you, where I set up a cloth from scratch then create a plane for it to collide with :