Switch to unified view

a b/Body/AAUHuman/Trunk/Slider.any
1
//Slider for applying force from disc to buckle
2
// //made to ensure that the force is applied in the plane of the disc
3
4
AnySeg Seg={
5
  r0=.r_vec;
6
  Axes0=.Axes;
7
  Mass=0.1;
8
  Jii={0,0,0};
9
//  AnyDrawRefFrame drw={RGB={0,0,1};ScaleXYZ={0.1,0.1,0.1};};
10
};
11
12
AnyPrismaticJoint  Slider1Jnt = {
13
  AnySeg &ref1=.StartNode; //node on buckle seg
14
  AnySeg &ref2=.Seg;  //slider segment
15
  Axis=y; //slide along y axis on buckle
16
};
17
18
AnyReacForce SliderReaction ={
19
  AnyPrismaticJoint  &ref=.Slider1Jnt;
20
};
21
22
AnyKinEqSimpleDriver LinDrv={
23
  AnyKinLinear lin ={
24
    AnyRefNode &ref1=..DiscNode; //node on disc to measure wrt to.
25
    AnySeg &ref2=..Seg; //slider segment
26
    Ref=0; //use ref1 as basis
27
  };
28
  DriverPos={0};
29
  DriverVel={0};
30
  MeasureOrganizer={1}; //Drive the y coordinate this is out of plane on the disc
31
  Reaction.Type={Off};  //should remain OFF 
32
};
33
34