OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
/// <summary>
/// Set a new geometry for this prim.
/// </summary>
/// <param name="geom"></param>
Set a new geometry for this prim.
Set a new geometry for this prim .
private void SetGeom(IntPtr geom)
        {
            prim_geom = geom;
            if (m_assetFailed)
            {
                d.GeomSetCategoryBits(prim_geom, 0);
                d.GeomSetCollideBits(prim_geom, BadMeshAssetCollideBits);
            }
            else
            {
                d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories);
                d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags);
            }
            _parent_scene.geom_name_map[prim_geom] = Name;
            _parent_scene.actor_name_map[prim_geom] = this;
            if (childPrim)
            {
                if (_parent != null && _parent is OdePrim)
                {
                    OdePrim parent = (OdePrim)_parent;
                    parent.ChildSetGeom(this);
                }
            }
        }
private void SetGeom ( IntPtr geom ) { prim_geom = geom ; if ( m_assetFailed ) { d . GeomSetCategoryBits ( prim_geom , 0 ) ; d . GeomSetCollideBits ( prim_geom , BadMeshAssetCollideBits ) ; } else { d . GeomSetCategoryBits ( prim_geom , ( int ) m_collisionCategories ) ; d . GeomSetCollideBits ( prim_geom , ( int ) m_collisionFlags ) ; } _parent_scene . geom_name_map [ prim_geom ] = Name ; _parent_scene . actor_name_map [ prim_geom ] = this ; if ( childPrim ) { if ( _parent != null && _parent is OdePrim ) { OdePrim parent = ( OdePrim ) _parent ; parent . ChildSetGeom ( this ) ; } } }
Set a new geometry for this prim.
Set a new geometry for this prim .
//Console.WriteLine("SetGeom to " + prim_geom + " for " + Name); //Console.WriteLine("SetGeom calls ChildSetGeom"); //m_log.Warn("Setting Geom to: " + prim_geom);
geom
IntPtr
None