XNA Creators Club Online

détails de l’échantillon

Flocking
Échantillon
envoyé
2008-08-29

Description:

This sample demonstrates how AIs can use simple rules to move together and create complex behaviors.

Sample Overview

When programming the AI for your game, you often want your actors to move and react together without having to behave identically. For example, you might want to simulate a school of fish that all swim together without a centralized control or a battalion of soldiers that can march together in formation around obstacles.

This sample demonstrates some of these behaviors. The sample has a flock of birds that fly to, and in the same direction as, other birds they see nearby. The sample also has a cat that you can turn on and who then chases the birds as they run away.

 

téléchargements
Framework

GS 2.0

Version Vertex Shader

VS 1.1

Version Pixel Shader

PS 1.1

var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG