OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
/// <summary>
/// Change prim in response to an angular force taint.
/// </summary>
Change prim in response to an angular force taint.
Change prim in response to an angular force taint .
private void changeAddAngularForce()
        {
            if (!m_isSelected)
            {
                lock (m_angularforcelist)
                {
                    if (IsPhysical)
                    {
                        Vector3 iforce = Vector3.Zero;
                        for (int i = 0; i < m_angularforcelist.Count; i++)
                        {
                            iforce = iforce + (m_angularforcelist[i] * 100);
                        }
                        d.BodyEnable(Body);
                        d.BodyAddTorque(Body, iforce.X, iforce.Y, iforce.Z);
                    }
                    m_angularforcelist.Clear();
                }
                m_collisionscore = 0;
                m_interpenetrationcount = 0;
            }
            m_taintaddangularforce = false;
        }
private void changeAddAngularForce ( ) { if ( ! m_isSelected ) { lock ( m_angularforcelist ) { if ( IsPhysical ) { Vector3 iforce = Vector3 . Zero ; for ( int i = 0 ; i < m_angularforcelist . Count ; i ++ ) { iforce = iforce + ( m_angularforcelist [ i ] * 100 ) ; } d . BodyEnable ( Body ) ; d . BodyAddTorque ( Body , iforce . X , iforce . Y , iforce . Z ) ; } m_angularforcelist . Clear ( ) ; } m_collisionscore = 0 ; m_interpenetrationcount = 0 ; } m_taintaddangularforce = false ; }
Change prim in response to an angular force taint.
Change prim in response to an angular force taint .
//m_log.Info("[PHYSICS]: dequeing forcelist");