Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Rope position delay from parent
#8
(16-05-2018, 04:05 PM)VirtualCucumber Wrote: I had it simulate after fixed update at first but when i started pinning physics objects to it, the objects would not react.
[Image: 1uEV6j1.gif]

Yes, as the rope is being simulated after regular physics, so rigidbodies will ignore the rope. You should use OnStepBegin then, to make sure the order in which things happen each FixedUpdate() is this:

- The object moves (your Move() function is called)
- The rope is simulated.
- Rigidbodies are simulated.

(16-05-2018, 04:05 PM)VirtualCucumber Wrote: And I would assign that function to the event like this?
Code:
private void Start()
   {
       solver.OnStepBegin += Move;
   }

Yes, but make sure the function parameters match the delegate parameters.
Reply


Messages In This Thread
RE: Rope position delay from parent - by cubrman - 15-05-2018, 08:02 PM
RE: Rope position delay from parent - by josemendez - 16-05-2018, 04:32 PM