コード例 #1
0
ファイル: Human.cs プロジェクト: PascalMinder/CrowdSimulator
 private bool OnPredicate(Human Human)
 {
     return Vec2.Dot((this.Node - this.Position), (Human.Position - this.Position)) >= 0.02f && (Human.Position != this.Position);
 }
コード例 #2
0
ファイル: Crowd.cs プロジェクト: PascalMinder/CrowdSimulator
 private List<Human> GetNearestNeighbour(Human LeMe)
 {
     return field.GetNearestNeighbour(LeMe.FieldIndex, LeMe.Position);
 }