Cloth ini

From XStoryPlayer Wiki
Revision as of 01:00, 27 January 2015 by Xwikip (Talk | contribs) (Created page with "cloth "braShape" { save = true; dynamic { int_steps = 4; s0 = 42.0; s1 = 8.0; s2 = 0.5; d0 = 0.08; d1 = 0.02; d2 = 0.0; Kd = 0.003;...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

cloth "braShape" {

 save = true;
 dynamic
 {
   int_steps = 4;
   s0 = 42.0;
   s1 = 8.0;
   s2 = 0.5;
   d0 = 0.08;
   d1 = 0.02;
   d2 = 0.0;
   Kd = 0.003;
   button
   { 
     row    = (224,110,265,260);
     row    = (114,70,266,259);
     row    = (185,27,267,261);
     closed = true;
   }
   button
   { 
     row    = (221,104,263,1);
     row    = (107,73,264,5);
     row    = (182,30,262,0);
     closed = true;
   }
   zipper
   { 
     row = (63, 306);
     row = (131,305);
     row = (64, 307);   
     row = (296,302);
     row = (130,303);
     row = (65, 304);
     row = (129,301);
     row = (39, 300);
     closed = 0;
     
     render_row
     {
       elem[0]
       {
         lod[0]
         {
           mesh = "braZipperRowShape";
         }
       }
       
       elem[1]
       {
         lod[0]
         {
           mesh = "braZipperRow2Shape";
         }
       }
     }
   }
   
   zipper_shift = 0.5;
   button_shift = 0.5;
   button_depth = 0.0;
   button_s = 42.0;
   button_d = 0.08;
   
   zipper_s = 200.0;
   zipper_d = 0.08;
 }
 render
 {
   vdis_correct = 0.3;
   
   lod[0]
   {
     mesh = "braShape";
   }
 }
 physics
 { 
   bind_mesh = "braBindShape";
   fc = 1.0;
   cc = 1.0;
 }
 interact {}
 
 button
 {
   render
   {
     lod[0]
     {
       mesh = "braButtonShape";
     }
   }
   interact
   {
     mesh = "braButtonIntShape";
   }
 }
 
 zipper
 {
   render
   {
     elem[0]
     {
       lod[0]
       {
         mesh = "braZipperShape";
       }
     }
     
     elem[1]
     {
       lod[0]
       {
         mesh = "braZipper2Shape";
       }
     }
   }
   interact
   {
     mesh = "braZipperIntShape";
   }
   
   media
   {
     filename = "scenes/sounds/cloth/zipper1.wav";
     type   = AUDIO;
     stream = false;
     pos3d  = true;
     start  = false;
     loop   = true;
     volume = 1.0;
   }
 }

}