Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bouncy Soft Body
#4
(07-07-2020, 05:23 PM)iliakot Wrote: Hi!
In this test - https://www.dropbox.com/s/b0vv7uoq20kcdq...s.mov?dl=0 - bottle is an Obi Softbody and the bouncy cube is just PhysX Rigidbody + bouncy materials on the floor colliders. So, I like how the softbody wobbles and how the cube bounces, the goal is to combine these two behaviours somehow. Since it's game development probably some sort of faking would also work, but after couple of quick tests it looks like there is no trivial way to do so (will be happy to be wrong here - any suggestions are very welcome).

Hi there!

I see, unfortunately there's not an easy way to add extra bouncing to a softbody. The closest you can get is:

- Subscribe to the solver's OnCollision event.
- Iterate over all contacts in the frame.
- For each "bouncy "contact, and get its normal impulse magnitude/direction and apply an extra percentage of this impulse as a velocity delta to the involved particle.

This is of course a hack: won't work correctly for collisions against rigidbodies (since only the particle is affected by restitution), and does not work properly with collision materials.
Reply


Messages In This Thread
Bouncy Soft Body - by iliakot - 23-06-2020, 07:17 PM
RE: Bouncy Soft Body - by josemendez - 24-06-2020, 08:12 AM
RE: Bouncy Soft Body - by iliakot - 07-07-2020, 05:23 PM
RE: Bouncy Soft Body - by josemendez - 08-07-2020, 09:02 AM