示例#1
0
        public override void Update(Particle part)
        {
            Vector2 force = point - part.position;

            MathExtra.SetVectorLength(ref force, strength);
            part.AddForce(force);
        }
示例#2
0
 public override void Update(Particle part)
 {
     part.AddForce(force);
 }
示例#3
0
 public override void Update(Particle part)
 {
     Vector2 force = point - part.position;
     MathExtra.SetVectorLength(ref force, strength);
     part.AddForce(force);
 }
示例#4
0
 public override void Update(Particle part)
 {
     part.AddForce(force);
 }