in

This site is all about the amazingly cool stuff you can do with VB.NET.

zip VB.NET XNA Transformed Collision Sample

Downloads: 479 File Size: 35.6kB
Posted By: admin Views: 708
Date Added: 12-21-2007

 Here's the VB.NET version of the source code from #3 in the three part collision series. Original Tutorial can be found at the Creators Club site: http://creators.xna.com/

 

Collision Series 3: 2D Collision with Transformed Objects

This article explains how to perform per-pixel collision detection on sprites by using linear transformations such as rotation or scale.

Introduction

In the previous sample, you enhanced your simple obstacle avoidance game by adding per-pixel collisions, which are more accurate than the previously existing bounding rectangle test. The per-pixel technique presented in tutorial 2 accommodates only positioned sprites, without any other transformations. For many games, this is completely sufficient. However, if your game requires objects that are rotated, scaled, or otherwise linearly transformed, you are going to need a more sophisticated per-pixel collision test.

Comments

No comments exist for this file.

Copyright 2008 - ILoveVB.NET
Powered by Community Server (Commercial Edition), by Telligent Systems