Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flipping cloth? ScaleX == -1?
#10
(23-08-2019, 10:03 AM)cubrman Wrote: 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()?

As I already told you, set your solver update mode to FixedUpdate, then write your code after WaitForFixedUpdate:
https://docs.unity3d.com/ScriptReference...pdate.html

Your code should be executed after all physics steps in the frame, which is precisely what WaitForFixedUpdate accomplishes. See:
https://docs.unity3d.com/Manual/ExecutionOrder.html

You can also insert it in Update, or even LateUpdate.

(23-08-2019, 10:03 AM)cubrman Wrote: 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.

As I said, colliders (capsule, box and sphere colliders in particular) do not support negative scale. Are you 100% positive you're flipping them after the simulation?
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