OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
/// <summary>
/// Change prim in response to a physics status taint
/// </summary>
Change prim in response to a physics status taint
Change prim in response to a physics status taint
private void changePhysicsStatus()
        {
            if (IsPhysical)
            {
                if (Body == IntPtr.Zero)
                {
                    if (_pbs.SculptEntry && _parent_scene.meshSculptedPrim)
                    {
                        changeshape();
                    }
                    else
                    {
                        enableBody();
                    }
                }
            }
            else
            {
                if (Body != IntPtr.Zero)
                {
                    if (_pbs.SculptEntry && _parent_scene.meshSculptedPrim)
                    {
                        RemoveGeom();
                        changeadd();
                    }
                    if (childPrim)
                    {
                        if (_parent != null)
                        {
                            OdePrim parent = (OdePrim)_parent;
                            parent.ChildDelink(this);
                        }
                    }
                    else
                    {
                        disableBody();
                    }
                }
            }
            changeSelectedStatus();
            resetCollisionAccounting();
            m_taintPhysics = IsPhysical;
        }
private void changePhysicsStatus ( ) { if ( IsPhysical ) { if ( Body == IntPtr . Zero ) { if ( _pbs . SculptEntry && _parent_scene . meshSculptedPrim ) { changeshape ( ) ; } else { enableBody ( ) ; } } } else { if ( Body != IntPtr . Zero ) { if ( _pbs . SculptEntry && _parent_scene . meshSculptedPrim ) { RemoveGeom ( ) ; changeadd ( ) ; } if ( childPrim ) { if ( _parent != null ) { OdePrim parent = ( OdePrim ) _parent ; parent . ChildDelink ( this ) ; } } else { disableBody ( ) ; } } } changeSelectedStatus ( ) ; resetCollisionAccounting ( ) ; m_taintPhysics = IsPhysical ; }
Change prim in response to a physics status taint
Change prim in response to a physics status taint
//Console.WriteLine("changePhysicsStatus for " + Name);