Ejemplo n.º 1
0
        private void populateMesh(MOM mom)
        {
            Mesh m = LibLSDUnity.CreateMeshesFromTMD(mom.TMD).First();

            rotateUpright(m);
            _meshFilter.sharedMesh = m;
        }
Ejemplo n.º 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));
            }
        }