Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lock Softbody Movement & Cut it
#14
(01-06-2020, 12:24 PM)arrnav96 Wrote: Okay, it worked, although there are still tiny glitches, but I think I should be able to resolve them.

1. What is the best way to scale the softbody? The spawned piece seems way bigger than the actual object and changing it's transform or even parent's transform does nothing.
2. How do I make the piece fall down with a "melting" effect? Right now, the piece seems too stiff, I want it to be super soft.

Almost there otherwise!

EDIT: Also some times the spawned softbody objects simply fall through the table platform, even if I have set them up correctly! (Different phases, collider Obi components), the only way to fix this is seemingly to quickly move the platform transform a little at spawn time of any softbody (+0.1f in Y-direction, wait for 0.01f seconds and then back, using a coroutine) and only then the softbodies start noticing it's presence! Is this a bug? (Could it be related to me using Enter quick play mode without domain reload in Unity?)


1.- Scaling a deformable object isn't as trivial as it sounds. Mathematically, it does not make any sense to scale a deformable object since it has no clear "center" or "origin"...where would you scale from, if the object can change its shape in many ways? Same for translation and rotation: only rigid shapes can be transformed in the traditional (affine) sense, in a meaningful way.

Now, you could either generate the blueprint from a smaller version of the mesh (by "smaller mesh" I mean exactly that: not the same mesh with a smaller transform scale, but actual vertices closer together), or scale the simulation as a whole, using the solver transform (doable because the simulation is performed in solver space).

Dealing with transforms in deformable object simulations *really* requires good understanding of affine transforms and vector spaces.

2.- Using a lower deformation resistance for shape matching constraints will do: http://obi.virtualmethodstudio.com/tutor...aints.html
Reply


Messages In This Thread
Lock Softbody Movement & Cut it - by arrnav96 - 27-05-2020, 06:42 AM
RE: Lock Softbody Movement & Cut it - by arrnav96 - 27-05-2020, 09:51 AM
RE: Lock Softbody Movement & Cut it - by arrnav96 - 27-05-2020, 10:39 AM
RE: Lock Softbody Movement & Cut it - by arrnav96 - 27-05-2020, 10:59 AM
RE: Lock Softbody Movement & Cut it - by arrnav96 - 27-05-2020, 01:20 PM
RE: Lock Softbody Movement & Cut it - by arrnav96 - 01-06-2020, 10:36 AM
RE: Lock Softbody Movement & Cut it - by arrnav96 - 01-06-2020, 12:24 PM
RE: Lock Softbody Movement & Cut it - by josemendez - 01-06-2020, 07:38 PM