Beispiel #1
0
        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);
        }
Beispiel #2
0
        static void SolveVelocityConstraintsCallback(object state)
        {
            var svcState = (SolveVelocityConstraintsState)state;

            svcState.ContactSolver.SolveVelocityConstraints(svcState.Start, svcState.End);
            SolveVelocityConstraintsState.Return(svcState);
            svcState.ContactSolver.SolveVelocityConstraintsWaitLock.Signal();
        }