Virtools Dev提供了SDK,允许用户在VC++6.0编程环境中开发自己的行为模块.因此,为了进一步研究I OD技术在汽车驾驶模拟器中的应用,也开发了自己的I OD行为模块.该I OD行为模块名为“I OD for PM and Patch Mesh ac—cording toDistance”。 在对象的脚本(Script)页面中,将该LOD行为模块拖拽下来,放到Script中。开发该行为模块时,主要使用到了SDK 中的两个类:CKMesh和CKPatchMesh.开发该控件的核心代码用伪代码表示如下.
[5] Li Xunxiang,Chen Dingfang,Wang Le,et a1.Re—search and dexrelopment of distributed VR driving system based on virtools[C]//1)roceedings of 2006 1 0th international Conference on Computer Sup—ported Cooperative W ork in Design,IEEE Press,2006,M ay 3—5:1 1 37一l 141.