Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Is there any way to fix cloth on specific point?
#3
(30-08-2024, 07:54 AM)josemendez Wrote: Hi,

This is the default behavior of ObiParticleAttachments: when enabled, they'll attach the particle(s) at their current position relative to the target transform. You can just move the cloth and/or the target around to change the attachment position.

If you need to force *only* the attached particles to move to a specific position before enabling the attachment, you can also do so (even though it will stretch the cloth and cause it to "jump" during the first few frames of simulation, which is pretty much always an undesired effect). The manual contains sample code for a component that will force the particles to move to the target transform's local origin: http://obi.virtualmethodstudio.com/manua...ments.html

kind regards,
 
Thank you for explanation! And, can I ask you one more thing? We currently have to generate obi distance field in every 1st time the player starts to play via scripts. But obidistancefield.generate() is pretty slow with the condtion that we set - max depth =7, max error =(1e-05). I know this is pretty picky and heavy to any platform to generate distance field , but we do really need this condition for this project. Is there any way to make this generate coroutine more faster?
Reply


Messages In This Thread
RE: Is there any way to fix cloth on specific point? - by gahyun11 - 03-09-2024, 08:55 AM