Changeset 587 for experiments


Ignore:
Timestamp:
08/19/16 00:27:50 (8 years ago)
Author:
oriona
Message:

Enhanced nutrient visualization corrected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • experiments/frams/foraminifera/data/scripts/foraminifera.expdef

    r584 r587  
    591591        {
    592592                change_direction = 1;
    593                 cr.moveAbs(new_x-cr.size_x/2, new_y-cr.size_y/2, -cr.getPart(cr.numparts-1).sx);
     593                cr.moveAbs(new_x-cr.size_x/2, new_y-cr.size_y/2, -cr.getPart(cr.numparts-1).sx);//place slightly under the bottom surface ("z" value depends on the size of the last=largest chamber)
    594594        }
    595595
     
    788788                var nut = Populations[2].add("//0\nm:Vstyle=nutrient_visual\np:sh=2,sx="+nutsize+",sy="+nutsize+",sz="+nutsize+",ry=1.5,vr=0.0,1.0,0.0");
    789789                cr.data->reticulopodiacreature = nut;
    790                 nut.moveAbs(cr.pos_x-nutsize, cr.pos_y-nutsize, -nutsize);
     790                nut.moveAbs( cr.pos_x+cr.size_x/2-nut.size_x/2,  cr.pos_y+cr.size_y/2-nut.size_y/2, -nutsize);
    791791        }
    792792}
Note: See TracChangeset for help on using the changeset viewer.