XNA Creators Club Online

détails du didacticiel

Collision Series 2: 2D Per-Pixel Collision
Didacticiel
envoyé
24/05/2007

Description:

This tutorial details how to perform per-pixel collision detection in two dimensions.

This tutorial builds on the previous tutorial in this series, Collision Series 1: 2D Rectangle Collision. Follow the steps in that tutorial before starting this tutorial.

Tutorial Overview

In the previous example, you created a simple object avoidance game using rectangle collision detection. The rectangles used were only an approximation of the blocks and person drawn into the textures. You may have noticed the exclusive use of rectangles resulted in imprecise behavior for nonrectangular objects.

Other items in the Collision Series:

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