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

Yes, you can just have that. I meant that the arguments of your Move() function should be the same ones declared for OnStepBegin, but I see you already did that.
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, 05:17 PM