コード例 #1
0
        private void populateMesh(MOM mom)
        {
            Mesh m = LibLSDUnity.CreateMeshesFromTMD(mom.TMD).First();

            rotateUpright(m);
            _meshFilter.sharedMesh = m;
        }
コード例 #2
0
        public InteractiveObjectData(MOM mom, Material mat)
        {
            _mom = mom;

            ObjectTable = LibLSDUnity.CreateMeshesFromTMD(mom.TMD);

            Animations = new List <TODAnimation>();
            foreach (var anim in _mom.MOS.TODs)
            {
                Animations.Add(new TODAnimation(anim, ObjectTable, mat));
            }
        }