Download this file

62 lines (46 with data), 2.4 kB

AnyFolder Leg2D = {
  // **********************************************************
  // The following references refers to stuff that the Leg2D model needs 
  // and which does not differ for rigth and left side
  // **********************************************************
  
  // **********************************************************
  //  This is a reference to where the body parameters are located. 
  //  The model will need the following quantities
  //  AnyVar BodyMass
  //  AnyVar BodyHeight
  //  AnyVar Density
  //  **********************************************************
  AnyFolder &BodyParRef = ..BodyParameters; 
  
  // **********************************************************
  //  This is a reference to where the colors for the model are located
  //  The model will need the following quantities
  //  AnyVec3 Nodes
  //  AnyVec3 Segments   
  //  **********************************************************
  AnyFolder &ColorRef = ..DrawSettings.Colors; 
  AnyVar HipWidth = ..BikeParameters.PedalArmWidth;      
  
  // **********************************************************
  // This is a reference to the folder which contains the drawing settings for the muscles
  // **********************************************************
  AnyFolder &MusDrawRef = ..DrawSettings.Muscle;  
  
  //This is the path to the trunk segments which the legs will attach too
  #include "<ANYBODY_PATH_BODY>\Leg2D\SegmentsTrunk.any"
  
  //This folder contains the right leg
  AnyFolder Right = {
    
    //This is a sign variable which indicates that this is the right side
    AnyVar Sign = 1;
    
    //This is the node where the leg is attached to the pelvis right hipnode 
    AnyRefFrame &HipNodeRef = .Pelvis.HipJointRight;
    
    //This the include file that contains the leg
    #include "<ANYBODY_PATH_BODY>\Leg2D\Leg.root.any"
    
  }; //Right
  
  //This folder contains the left leg
  AnyFolder Left = {
    
    //This is a sign variable which indicates that this is the left side
    AnyVar Sign = -1;
    
    //This is the node where the leg is attached to the pelvis left hipnode 
    AnyRefFrame &HipNodeRef = .Pelvis.HipJointLeft;
    
    //This the include file that contains the leg
    #include "<ANYBODY_PATH_BODY>\Leg2D\Leg.root.any"

  }; //Left
  
}; //Leg2D