Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Cloth Physics to Trawler Net
#1
Hi there, im importing a trawlernet structure from a Json File. This file includes a start and end position for each element of the net.  For now i created a cylinder for each element but this does not give the expected results and is not realy an efficient way to simulate. i was thinking for a way to generate a custom mesh or curved plane based on the vertices of the elements so that i can use Obi cloth on it. but im stuck on the the approach to achieve this.

My question is: can i modify or create a particle system for the cloth system based on the vertices of my imported Json file? 

I attached some pictures of a part of the net.


Attached Files Thumbnail(s)
       
Reply
#2
(31-05-2023, 02:02 PM)jacobwoord Wrote: Hi there, im importing a trawlernet structure from a Json File. This file includes a start and end position for each element of the net.  For now i created a cylinder for each element but this does not give the expected results and is not realy an efficient way to simulate. i was thinking for a way to generate a custom mesh or curved plane based on the vertices of the elements so that i can use Obi cloth on it. but im stuck on the the approach to achieve this.

My question is: can i modify or create a particle system for the cloth system based on the vertices of my imported Json file? 

I attached some pictures of a part of the net.

Hi!

By default, cloth blueprints create one particle per vertex in its input mesh. If you create a Mesh object out of your JSON file, all you've got to do is feed this mesh to a ObiClothBlueprint and call its Generate() coroutine. (see: http://obi.virtualmethodstudio.com/manua...ctors.html for details on how to create a blueprint at runtime).

kind regards,
Reply