コード例 #1
0
        public ODEAssetRequest(ODEMeshWorker pWorker, RequestAssetDelegate provider,
                               ODEPhysRepData pRepData, ILog plog)
        {
            m_worker = pWorker;
            m_log    = plog;
            repData  = pRepData;

            repData.meshState = MeshState.AssetFailed;
            if (provider == null)
            {
                return;
            }

            if (repData.assetID == null)
            {
                return;
            }

            UUID assetID = (UUID)repData.assetID;

            if (assetID == UUID.Zero)
            {
                return;
            }

            repData.meshState = MeshState.loadingAsset;
            provider(assetID, ODEassetReceived);
        }
コード例 #2
0
 public void RegionLoaded()
 {
     mesher = m_frameWorkScene.RequestModuleInterface<IMesher>();
     if (mesher == null)
     {
         m_log.ErrorFormat("[ubOde] No mesher. module disabled");
         return;
     }
     
     m_meshWorker = new ODEMeshWorker(this, m_log, mesher, physicsconfig);
     m_frameWorkScene.PhysicsEnabled = true;
 }
コード例 #3
0
ファイル: ODEMeshWorker.cs プロジェクト: TomDataworks/opensim
        public ODEAssetRequest(ODEMeshWorker pWorker, RequestAssetDelegate provider,
            ODEPhysRepData pRepData, ILog plog)
        {
            m_worker = pWorker;
            m_log = plog;
            repData = pRepData;

            repData.meshState = MeshState.AssetFailed;
            if (provider == null)
                return;

            if (repData.assetID == null)
                return;

            UUID assetID = (UUID) repData.assetID;
            if (assetID == UUID.Zero)
                return;

            repData.meshState = MeshState.loadingAsset;
            provider(assetID, ODEassetReceived);
        }