Beispiel #1
0
        // step
        public void step()
        {
            _rootMetamer.accumulateForces();
            _rootMetamer.integrate();
            for (int n = 0; n < NUM_CONSTRAINT_ITERATIONS; n++)
            {
                // Satisfy constraints
                _rootMetamer.satisfyConstraints();

                if (!_rootMetamer.isBroken)
                {
                    // Pin root metamer
                    _rootMetamer.position    = _position;
                    _rootMetamer.oldPosition = _position;
                }
            }
        }