Ejemplo n.º 1
0
 public ZombieCharacter(Game game, Vector3 translation, Color color)
     : this(game)
 {
     this.Color = color;
     this.Translation = translation;
     this.bodyGraphics = new OrientedCircle(game, translation, this.Color, this.Radius);
     this.viewTriangleGraphics = new OrientedTriangle(game, GeometryHelper.GetViewTriangle(Vector3.Zero, Settings.DefaultOrientationVector, this.ViewDistance, this.ViewAngle));
     this.smellingGraphics = new Circle(game, translation, Color.Gray, this.SmellingRadius);
 }
Ejemplo n.º 2
0
        private void FormTopology_Load(object sender, EventArgs e)
        {
            var geometry = RectanglePolygon.Generate(4);

            mesh = new Mesh();
            mesh.Triangulate(geometry);

            renderControl.Initialize(mesh);

            topoControlView.PrimitiveCommandInvoked += PrimitiveCommandHandler;

            current = new OrientedTriangle();
        }