static void SolveVelocityConstraintsCallback(object state) { var svcState = (SolveVelocityConstraintsState)state; svcState.ContactSolver.SolveVelocityConstraints(svcState.Start, svcState.End); SolveVelocityConstraintsState.Return(svcState); Interlocked.Decrement(ref svcState.ContactSolver.SolveVelocityConstraintsWaitLock); }
static void SolveVelocityConstraintsCallback(object state) { var svcState = (SolveVelocityConstraintsState)state; svcState.ContactSolver.SolveVelocityConstraints(svcState.Start, svcState.End); SolveVelocityConstraintsState.Return(svcState); svcState.ContactSolver.SolveVelocityConstraintsWaitLock.Signal(); }