17-06-2020, 10:46 AM
(This post was last modified: 17-06-2020, 10:48 AM by josemendez.)
(17-06-2020, 10:42 AM)JeongMin Lee Wrote: Oh~ Thank you reply.
So if you use this script, do you mean you can use softbody even if you grab an object?
You can't grab a softbody (or any deformable object) by parenting it under a transform, for the reasons I mentioned before. This script grabs a softbody, by doing what I explained in the previous message:
Quote:detects which particles are in contact with a collider/trigger, then fix them by setting their mass to infinite and set their position relative to the collider.
(17-06-2020, 10:42 AM)JeongMin Lee Wrote: Then let me ask you one more question.
Where should I put that script? I'd like to know that.
The script starts with [RequireComponent(typeof(ObiCollider))], so you should place it in the collider that is going to grab the softbody (the player's hand, for example).