Obi Official Forum
Can this cloth be used for a football goal net - Printable Version

+- Obi Official Forum (http://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (http://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Cloth (http://obi.virtualmethodstudio.com/forum/forum-2.html)
+--- Thread: Can this cloth be used for a football goal net (/thread-2386.html)



Can this cloth be used for a football goal net - mikemnd - 26-07-2020

Hello,

I'm making a football game and I was searching for a goal net/cloth asset.
Do you think your cloth simulator can do the work and be set up as a football goal net?
Are there some limits to the rigid body size and speed?

Something like this:
https://thumbs.dreamstime.com/videothumb_large16580/165809719.mp4
or
https://thumbs.dreamstime.com/videothumb_large12200/122001404.mp4

Also, how do you think it will affect performance on mobile since that will be the target platform.


RE: Can this cloth be used for a football goal net - josemendez - 27-07-2020

(26-07-2020, 08:21 PM)mikemnd Wrote: Hello,

I'm making a football game and I was searching for a goal net/cloth asset.
Do you think your cloth simulator can do the work and be set up as a football goal net?
Are there some limits to the rigid body size and speed?

Something like this:
https://thumbs.dreamstime.com/videothumb_large16580/165809719.mp4
or
https://thumbs.dreamstime.com/videothumb_large12200/122001404.mp4

Also, how do you think it will affect performance on mobile since that will be the target platform.

Hi there,

ObiCloth was initially created out of need for this specific use case, also in a soccer game, so yes it can be done.

Keep in mind that the usual restrictions in timestep size and object velocity apply, as they do in any physics engine. Tunneling can happen under certain circumstances if the ball is too small/too fast, but this can be alleviated by using sub stepping.

Regarding performance, keep in mind that cloth simulation is always quite expensive. In our original use case, we also targeted mobile in addition to desktop platforms. In less powerful devices (iPhone 7 and lower) we had to fake the net simulation by using a simple spring force on the ball, and a vertex displacement shader that deformed the net based on the ball's position.

kind regards,

Edit: for completeness, here's ObiCloth used for a soccer net: