Simple formation slot assignment
Simple formation slot assignment
• Greedy won't work

• Optimal is NP-Hard
Order & assign
• Order the slots

• split in layers

• front to back

• right to left
Order & assign
• Order the slots

• split in layers

• front to back

• right to left
Order & assign
• Order the slots

• split in layers

• front to back

• right to left
1
2
3
4
5
6
7
8
Order & assign
• Order the initial positions

• target orientation

• layers count 

• layers size

• Assign nth to nth
Order & assign
• Order the initial positions

• target orientation

• layers count 

• layers size

• Assign nth to nth
Order & assign
• Order the initial positions

• target orientation

• layers count 

• layers size

• Assign nth to nth
1
...
Order & assign
• Order the initial positions

• target orientation

• layers count 

• layers size

• Assign nth to nth
1
...
Everything is awesome!
Clodéric Mars

cloderic.mars@masagroup.net

@clodericmars
Simple formation assignment (GDC '14, AI Summit)
Simple formation assignment (GDC '14, AI Summit)
Prochain SlideShare
Chargement dans…5
×

Simple formation assignment (GDC '14, AI Summit)

1 263 vues

Publié le

This is a part of GDC 2014, AI Summit's "The simplest trick in the book" session.

It features a simple yet effective algorithm to assign entities to a navigation formation's slots.

Publié dans : Technologie
0 commentaire
0 j’aime
Statistiques
Remarques
  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

Aucun téléchargement
Vues
Nombre de vues
1 263
Sur SlideShare
0
Issues des intégrations
0
Intégrations
22
Actions
Partages
0
Téléchargements
12
Commentaires
0
J’aime
0
Intégrations 0
Aucune incorporation

Aucune remarque pour cette diapositive

Simple formation assignment (GDC '14, AI Summit)

  1. 1. Simple formation slot assignment
  2. 2. Simple formation slot assignment
  3. 3. • Greedy won't work • Optimal is NP-Hard
  4. 4. Order & assign • Order the slots • split in layers • front to back • right to left
  5. 5. Order & assign • Order the slots • split in layers • front to back • right to left
  6. 6. Order & assign • Order the slots • split in layers • front to back • right to left 1 2 3 4 5 6 7 8
  7. 7. Order & assign • Order the initial positions • target orientation • layers count • layers size • Assign nth to nth
  8. 8. Order & assign • Order the initial positions • target orientation • layers count • layers size • Assign nth to nth
  9. 9. Order & assign • Order the initial positions • target orientation • layers count • layers size • Assign nth to nth 1 2 3 4 6 7 8 5
  10. 10. Order & assign • Order the initial positions • target orientation • layers count • layers size • Assign nth to nth 1 2 3 4 6 7 8 5
  11. 11. Everything is awesome! Clodéric Mars cloderic.mars@masagroup.net @clodericmars

×