Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Rope position delay from parent
#9
(16-05-2018, 04:32 PM)josemendez Wrote: 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.


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

Thanks for the info.
Sorry for spamming with questions but i havent dealt yet with Delegates and Events. I get the jist of them just havent used them.

I cant just have:
Code:
private void Start()
   {
       solver.OnStepBegin += Move;  
   }

public void Move(object sender, EventArgs e)

Do i have to declare a delegate in the ObiSolver class and assign its type to OnFrameBegin/End ?
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 VirtualCucumber - 16-05-2018, 05:06 PM