예제 #1
0
 public Spring2d(Particle2dBase particle, Particle2dBase other, Single springConstant, Single restLength)
     : base(particle)
 {
     _other = other;
     _springConstant = springConstant;
     _restLength = restLength;
 }
예제 #2
0
 public AnchoredSpring2d(Particle2dBase particle, Vector2 anchor, Single springConstant, Single restLength)
     : base(particle)
 {
     Anchor = anchor;
     SpringConstant = springConstant;
     RestLength = restLength;
 }
예제 #3
0
 public Buoyancy2d(Particle2dBase particle, Single maxDepth, Single volume, Single waterHeight, Single liquidDensity = 1000.0f)
     : base(particle)
 {
     _maxDepth = maxDepth;
     _volume = volume;
     _waterHeight = waterHeight;
     _liquidDensity = liquidDensity;
 }
예제 #4
0
 public AnchoredBungee2d(Particle2dBase particle, Vector2 anchor, Single springConstant, Single restLength)
     : base(particle, anchor, springConstant, restLength)
 {
 }
예제 #5
0
 public Gravity2d(Particle2dBase particle, Vector2 gravity)
     : base(particle)
 {
     _gravity = gravity;
 }
 protected ForceGenerator2dBase(Particle2dBase particle)
 {
     Particle = particle;
 }
예제 #7
0
 public Friction2d(Particle2dBase particle)
     : base(particle)
 {
 }
예제 #8
0
 public Drag2d(Particle2dBase particle, Single k1, Single k2)
     : base(particle)
 {
     _k1 = k1;
     _k2 = k2;
 }