Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flipping cloth? ScaleX == -1?
#9
(23-08-2019, 07:17 AM)josemendez Wrote: Hi,

Well, if you perform flipping every frame in WaitForFixedUpdate(), your mesh is not flipped before the simulation. WaitForFixedUpdate happens right after all objects have had all FixedUpdate() calls executed, so by then simulation is done.

Could you please just tell me where should I instert my flipping-back code so that I can make my test properly? Which method should I insert the code into, instead of SimmulateStep()? I am dead certain that if I actually execute my idea properly EVERYTHING will be fine, even the black normals would disappear.

Quote:Keep in mind that most colliders do not support negative scaling. This is because there must be a consistent inside/outside for collisions to be efficient. So if you're flipping your character colliders you must do so together with the cloth mesh.


This is exactly what I am doing. The cloth is going inside colliders even though everything is flipped: the cloth', the colliders', the solver's GameObjects. There is something wrong with your reasoning. My colliders are capsule colliders and sphere colliders - that is all, no mesh collider shenanigans.
Reply


Messages In This Thread
Flipping cloth? ScaleX == -1? - by cubrman - 13-08-2019, 05:29 PM
RE: Flipping cloth? ScaleX == -1? - by josemendez - 14-08-2019, 09:10 AM
RE: Flipping cloth? ScaleX == -1? - by cubrman - 14-08-2019, 11:11 AM
RE: Flipping cloth? ScaleX == -1? - by josemendez - 14-08-2019, 12:19 PM
RE: Flipping cloth? ScaleX == -1? - by cubrman - 14-08-2019, 04:48 PM
RE: Flipping cloth? ScaleX == -1? - by josemendez - 14-08-2019, 05:30 PM
RE: Flipping cloth? ScaleX == -1? - by cubrman - 22-08-2019, 06:13 PM
RE: Flipping cloth? ScaleX == -1? - by josemendez - 23-08-2019, 07:17 AM
RE: Flipping cloth? ScaleX == -1? - by cubrman - 23-08-2019, 10:03 AM
RE: Flipping cloth? ScaleX == -1? - by josemendez - 23-08-2019, 10:05 AM
RE: Flipping cloth? ScaleX == -1? - by josemendez - 23-08-2019, 10:35 AM
RE: Flipping cloth? ScaleX == -1? - by cubrman - 23-08-2019, 12:10 PM
RE: Flipping cloth? ScaleX == -1? - by josemendez - 23-08-2019, 01:06 PM