16-05-2018, 05:06 PM
(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 ?