Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FixedUpdater location affecting rigidbody interaction
(24-08-2022, 11:35 PM)nghillaz Wrote: I have a rope and a player-controlled character. I want the rope to act as a barrier. If i put my updater and Solver on the rope itself, the rope works, and the character can't penetrate the rope. If i put the updater/solverĀ at a higher level so that i only have one updater in the scene, the character can walk right through the rope.


Simulation is always performed in the solver's local space. Placing the solver on the rope itself doesn't make any sense, since you'd be simulating a rope in its own local space - which is moving with the rope - so results can be unpredictable.

Depending on when your solver is updated during the frame (fixed update, after fixed update, late update, or some other place) and when your character controller is updated, you can have a 1-frame delay between them that will cause the character to penetrate the rope. So the solver takes care of where your simulation takes place, and the updater takes care of when.

A typical setup for small scenes that want simulation to be done in world space is to have a single solver in a root object placed at 0,0,0, with all actors as children (at any nesting level). In this case you can pretty much forget about the solver and assume everything is simulated in world space.

Could you give more details regarding your setup?
- Where's the solver placed in the hierarchy?
- Are you using a FixedUpdater or some other updater?
- How does your character controller work?

kind regards,

Messages In This Thread
RE: FixedUpdater location affecting rigidbody interaction - by josemendez - 25-08-2022, 08:03 AM