Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hinge Joints Alternative?
#5
(09-07-2019, 02:38 AM)StudioTatsu Wrote: I had issues with the soft bodies lagging behind the wheels and the doors lagging behind the vehicle. It seems the longer I drove, the farther away the connected particles drifted away. When I stop the connected particles would gradually move back to the connected position.

Also, I had issues with applying force to the softbodies. I needed AddForceAtPosition but currently, the ObiActor only have AddForce.
I may revisit using Obi softbodies with vehicles later, but for now, I'm using my own soft deformation solution. 

Obi Softbody is currently the best solution for softbodies in Unity, so if you can get it working without issues, it would definitely be worth it.

Hi!

Lag issues are generally caused by the order in which things happen during the frame. Most probably, your vehicle's physics are being updated after Obi, this results in Obi working with data that is 1-frame old. Also, interpolation introduces a 1-frame delay in the simulation, so if your ObiSolver uses it, make sure your rigid bodies do too so they're kept in sync.

AddForceAtPosition would be needed if the soft body was be a continuum material (like a rigid body), but it is made out of particles. So applying a force at a position is equivalent to changing the velocity of a particle Sonrisa.

We're currently working on a lot of improvements to Obi, we will announce it when things change for the better.
Reply


Messages In This Thread
Hinge Joints Alternative? - by StudioTatsu - 13-05-2019, 06:01 PM
RE: Hinge Joints Alternative? - by josemendez - 18-05-2019, 02:15 PM
RE: Hinge Joints Alternative? - by tegleg - 08-07-2019, 09:45 PM
RE: Hinge Joints Alternative? - by StudioTatsu - 09-07-2019, 02:38 AM
RE: Hinge Joints Alternative? - by josemendez - 09-07-2019, 10:52 AM
RE: Hinge Joints Alternative? - by tegleg - 09-07-2019, 10:48 PM
RE: Hinge Joints Alternative? - by josemendez - 10-07-2019, 07:10 AM
RE: Hinge Joints Alternative? - by tegleg - 10-07-2019, 12:04 PM
RE: Hinge Joints Alternative? - by Pheebau - 10-11-2020, 02:28 AM
RE: Hinge Joints Alternative? - by tegleg - 17-11-2020, 09:38 PM
RE: Hinge Joints Alternative? - by Pheebau - 18-11-2020, 12:58 AM
RE: Hinge Joints Alternative? - by Pheebau - 22-11-2020, 08:41 PM
RE: Hinge Joints Alternative? - by josemendez - 23-11-2020, 09:02 AM
RE: Hinge Joints Alternative? - by Pheebau - 23-11-2020, 10:18 AM
RE: Hinge Joints Alternative? - by tegleg - 23-01-2021, 01:54 AM