Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can this cloth be used for a football goal net
#2
(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:
Reply


Messages In This Thread
RE: Can this cloth be used for a football goal net - by josemendez - 27-07-2020, 07:10 AM